summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/no-common.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/no-common.c')
-rw-r--r--test/CodeGen/no-common.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/CodeGen/no-common.c b/test/CodeGen/no-common.c
new file mode 100644
index 0000000..190873c
--- /dev/null
+++ b/test/CodeGen/no-common.c
@@ -0,0 +1,6 @@
+// RUN: clang -emit-llvm -S -o %t %s &&
+// RUN: grep '@x = common global' %t &&
+// RUN: clang -fno-common -emit-llvm -S -o %t %s &&
+// RUN: grep '@x = global' %t
+
+int x;
OpenPOWER on IntegriCloud