diff options
Diffstat (limited to 'test/Driver/lto-unit.c')
-rw-r--r-- | test/Driver/lto-unit.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Driver/lto-unit.c b/test/Driver/lto-unit.c new file mode 100644 index 000000000000..8a800fa4dcd6 --- /dev/null +++ b/test/Driver/lto-unit.c @@ -0,0 +1,7 @@ +// RUN: %clang -target x86_64-unknown-linux -### %s -flto=full 2>&1 | FileCheck --check-prefix=UNIT %s +// RUN: %clang -target x86_64-unknown-linux -### %s -flto=thin 2>&1 | FileCheck --check-prefix=UNIT %s +// RUN: %clang -target x86_64-apple-darwin13.3.0 -### %s -flto=full 2>&1 | FileCheck --check-prefix=UNIT %s +// RUN: %clang -target x86_64-apple-darwin13.3.0 -### %s -flto=thin 2>&1 | FileCheck --check-prefix=NOUNIT %s + +// UNIT: "-flto-unit" +// NOUNIT-NOT: "-flto-unit" |