diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-08-24 22:26:16 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-08-24 22:26:16 +0000 |
commit | a6b4a3d646319636cf6be0b291e7172fe60b4cb5 (patch) | |
tree | b1ef1b73a330d8884df53670205c120fe56f2148 /clang/test/Driver/darwin-as.c | |
parent | 7c07d5fed87b24c9f64806a9d890ded83d59e0cb (diff) | |
download | bcm5719-llvm-a6b4a3d646319636cf6be0b291e7172fe60b4cb5.tar.gz bcm5719-llvm-a6b4a3d646319636cf6be0b291e7172fe60b4cb5.zip |
PR4766: Don't pass -static to 'as' on x86_64 on Darwin.
Also, do pass -static even with -dynamic on i386.
llvm-svn: 79948
Diffstat (limited to 'clang/test/Driver/darwin-as.c')
-rw-r--r-- | clang/test/Driver/darwin-as.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/test/Driver/darwin-as.c b/clang/test/Driver/darwin-as.c new file mode 100644 index 00000000000..24c7cd2fd9a --- /dev/null +++ b/clang/test/Driver/darwin-as.c @@ -0,0 +1,10 @@ +// RUN: clang -ccc-host-triple i386-apple-darwin10 -### -x assembler -c %s -static -dynamic 2>%t && +// RUN: FileCheck -check-prefix=STATIC_AND_DYNAMIC-32 --input-file %t %s + +// CHECK-STATIC_AND_DYNAMIC-32: as" "-arch" "i386" "-force_cpusubtype_ALL" "-static" "-o" + +// RUN: clang -ccc-host-triple x86_64-apple-darwin10 -### -x assembler -c %s -static 2>%t && +// RUN: FileCheck -check-prefix=STATIC-64 --input-file %t %s + +// CHECK-STATIC-64: as" "-arch" "x86_64" "-force_cpusubtype_ALL" "-o" + |