blob: 39fc96ce3e66c12355e94563f19c5fdae4fd71a9 [file] [log] [blame]
# Tests that multiple files are compiled correctly
#
# REQUIRES: platform=Linux
# RUN: rm -rf %t.dir
# RUN: mkdir %t.dir
# RUN: cp %S/hello.swift %t.dir/hello.swift
# RUN: cp %S/goodbye.swift %t.dir/main.swift
# RUN: %{swiftc} %t.dir/hello.swift %t.dir/main.swift -o %t.dir/main
# Check exists
#
# RUN: ls %t.dir/ > %t.listing
# RUN: %{FileCheck} --check-prefix CL --input-file %t.listing %s
# CL: main
# Check file runs
#
# RUN: %t.dir/main > %t.out
# RUN: %{FileCheck} --check-prefix CO --input-file %t.out %s
# CO: hello