xref: /minix3/external/bsd/llvm/dist/clang/test/Driver/darwin-as.c (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1f4a2713aSLionel Sambuc // RUN: %clang -target i386-apple-darwin10 -### -x assembler -c %s \
2f4a2713aSLionel Sambuc // RUN:   -no-integrated-as -static -dynamic 2>%t
3*0a6a1f1dSLionel Sambuc // RUN: FileCheck -check-prefix=CHECK-STATIC_AND_DYNAMIC-32-DARWIN10 --input-file %t %s
4*0a6a1f1dSLionel Sambuc //
5*0a6a1f1dSLionel Sambuc // CHECK-STATIC_AND_DYNAMIC-32-DARWIN10: as{{(.exe)?}}" "-arch" "i386" "-force_cpusubtype_ALL" "-static" "-o"
6*0a6a1f1dSLionel Sambuc 
7*0a6a1f1dSLionel Sambuc // RUN: %clang -target i386-apple-darwin11 -### -x assembler -c %s \
8*0a6a1f1dSLionel Sambuc // RUN:   -no-integrated-as -static -dynamic 2>%t
9f4a2713aSLionel Sambuc // RUN: FileCheck -check-prefix=CHECK-STATIC_AND_DYNAMIC-32 --input-file %t %s
10f4a2713aSLionel Sambuc //
11f4a2713aSLionel Sambuc // CHECK-STATIC_AND_DYNAMIC-32: as{{(.exe)?}}" "-Q" "-arch" "i386" "-force_cpusubtype_ALL" "-static" "-o"
12f4a2713aSLionel Sambuc 
13*0a6a1f1dSLionel Sambuc // RUN: %clang -target x86_64-apple-darwin11 -### -x assembler -c %s \
14f4a2713aSLionel Sambuc // RUN:   -no-integrated-as -static 2>%t
15f4a2713aSLionel Sambuc // RUN: FileCheck -check-prefix=CHECK-STATIC-64 --input-file %t %s
16f4a2713aSLionel Sambuc //
17f4a2713aSLionel Sambuc // CHECK-STATIC-64: as{{(.exe)?}}" "-Q" "-arch" "x86_64" "-force_cpusubtype_ALL" "-o"
18f4a2713aSLionel Sambuc 
19*0a6a1f1dSLionel Sambuc // RUN: %clang -target x86_64-apple-darwin11 -### \
20f4a2713aSLionel Sambuc // RUN:   -arch armv6 -no-integrated-as -x assembler -c %s 2>%t
21f4a2713aSLionel Sambuc // RUN: FileCheck -check-prefix=CHECK-ARMV6 --input-file %t %s
22f4a2713aSLionel Sambuc //
23f4a2713aSLionel Sambuc // CHECK-ARMV6: as{{(.exe)?}}" "-Q" "-arch" "armv6" "-o"
24