[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Driver / darwin-ld-reexports.c
blob2e96db49a8a3871902f7dd55a16f4ea2d9d273ce
1 // RUN: touch %t.o
2 // RUN: %clang -target arm64-apple-darwin13 -### \
3 // RUN: -reexport_framework Foo -reexport-lBar -reexport_library Baz %t.o 2> %t.log
5 // Check older spellings also work.
6 // RUN: %clang -target arm64-apple-darwin13 -### \
7 // RUN: -Xlinker -reexport_framework -Xlinker Forest \
8 // RUN: -Xlinker -reexport-lBranch \
9 // RUN: -Xlinker -reexport_library -Xlinker Flower %t.o 2>> %t.log
10 // RUN: FileCheck -check-prefix=LINK_REEXPORT %s < %t.log
12 // LINK_REEXPORT: {{ld(.exe)?"}}
13 // LINK_REEXPORT: "-reexport_framework" "Foo"
14 // LINK_REEXPORT: "-reexport-lBar"
15 // LINK_REEXPORT: "-reexport_library" "Baz"
16 // LINK_REEXPORT: "-reexport_framework" "Forest"
17 // LINK_REEXPORT: "-reexport-lBranch"
18 // LINK_REEXPORT: "-reexport_library" "Flower"
20 // Make sure arguments are not repeated.
21 // LINK_REEXPORT-NOT: "-reexport