xref: /llvm-project/clang/test/Driver/darwin-static-lib.c (revision 80d62993d0720bc36523e39e64cc36da6e445e64)
1*80d62993SKeith Smiley // RUN: %clang -target i386-apple-darwin9 %s -### --emit-static-lib 2>&1 | FileCheck %s
2*80d62993SKeith Smiley // CHECK: "{{.*}}libtool" "-static" "-D" "-no_warning_for_no_symbols" "-o" "a.out" "{{.*o}}"
3*80d62993SKeith Smiley 
4*80d62993SKeith Smiley // RUN: %clang -target i386-apple-darwin9 %s -### --emit-static-lib -o libfoo.a 2>&1 | FileCheck %s --check-prefix=OUTPUT
5*80d62993SKeith Smiley // OUTPUT: "{{.*}}libtool" "-static" "-D" "-no_warning_for_no_symbols" "-o" "libfoo.a" "{{.*o}}"
6