summaryrefslogtreecommitdiff
path: root/clang/test/Driver/mno-global-merge.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Driver/mno-global-merge.c')
-rw-r--r--clang/test/Driver/mno-global-merge.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/test/Driver/mno-global-merge.c b/clang/test/Driver/mno-global-merge.c
new file mode 100644
index 0000000..ec9f69e
--- /dev/null
+++ b/clang/test/Driver/mno-global-merge.c
@@ -0,0 +1,12 @@
+// RUN: %clang -target armv7-apple-darwin10 \
+// RUN: -mno-global-merge -### -fsyntax-only %s 2> %t
+// RUN: FileCheck --check-prefix=CHECK-NGM < %t %s
+
+// CHECK-NGM: "-mno-global-merge"
+
+// RUN: %clang -target armv7-apple-darwin10 \
+// RUN: -mglobal-merge -### -fsyntax-only %s 2> %t
+// RUN: FileCheck --check-prefix=CHECK-GM < %t %s
+
+// CHECK-GM-NOT: "-mglobal-merge"
+