• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1RUN: %build -n --verbose --arch=32 --mode=compile --compiler=any -o %t/foo.out foobar.c \
2RUN:    | FileCheck --check-prefix=COMPILE %s
3
4RUN: %build -n --verbose --arch=32 --mode=compile --compiler=any --outdir %t foo.c bar.c \
5RUN:    | FileCheck --check-prefix=COMPILE-MULTI %s
6
7RUN: %build -n --verbose --arch=32 --mode=link --compiler=any -o %t/foo.exe foobar.obj \
8RUN:    | FileCheck --check-prefix=LINK %s
9
10RUN: %build -n --verbose --arch=32 --mode=link --compiler=any -o %t/foobar.exe foo.obj bar.obj \
11RUN:    | FileCheck --check-prefix=LINK-MULTI %s
12
13RUN: %build -n --verbose --arch=32 --mode=compile-and-link --compiler=any -o %t/foobar.exe foobar.c \
14RUN:    | FileCheck --check-prefix=BOTH %s
15
16RUN: %build -n --verbose --arch=32 --mode=compile-and-link --compiler=any -o %t/foobar.exe foo.c bar.c \
17RUN:    | FileCheck --check-prefix=BOTH-MULTI %s
18
19
20COMPILE: compiling foobar.c -> foo.out
21
22COMPILE-MULTI: compiling foo.c -> foo.o{{(bj)?}}
23COMPILE-MULTI: compiling bar.c -> bar.o{{(bj)?}}
24
25
26LINK: linking foobar.obj -> foo.exe
27
28LINK-MULTI: linking foo.obj+bar.obj -> foobar.exe
29
30BOTH: compiling foobar.c -> [[OBJFOO:foobar.exe-foobar.o(bj)?]]
31BOTH: linking [[OBJFOO]] -> foobar.exe
32
33BOTH-MULTI: compiling foo.c -> [[OBJFOO:foobar.exe-foo.o(bj)?]]
34BOTH-MULTI: compiling bar.c -> [[OBJBAR:foobar.exe-bar.o(bj)?]]
35BOTH-MULTI: linking [[OBJFOO]]+[[OBJBAR]] -> foobar.exe
36