summaryrefslogtreecommitdiffstats
path: root/test/Driver/preserve-uselistorder.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Driver/preserve-uselistorder.c')
-rw-r--r--test/Driver/preserve-uselistorder.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Driver/preserve-uselistorder.c b/test/Driver/preserve-uselistorder.c
new file mode 100644
index 0000000..aee75a6
--- /dev/null
+++ b/test/Driver/preserve-uselistorder.c
@@ -0,0 +1,9 @@
+// RUN: %clang -target x86_64-apple-darwin -emit-llvm -arch x86_64 %s -### 2>&1 \
+// RUN: | FileCheck %s
+// CHECK: "-emit-llvm-bc"
+// CHECK: "-emit-llvm-uselists"
+
+// RUN: %clang -target x86_64-apple-darwin -flto -arch x86_64 %s -### 2>&1 \
+// RUN: | FileCheck -check-prefix=LTO %s
+// LTO: "-emit-llvm-bc"
+// LTO-NOT: "-emit-llvm-uselists"
OpenPOWER on IntegriCloud