| 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 |
| 4 |
|
| 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 |
| 11 |
|
| 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" |
| 19 |
|
| 20 |
// Make sure arguments are not repeated. |
| 21 |
// LINK_REEXPORT-NOT: "-reexport |