summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/GlobalDCE/basicvariabletest.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/Transforms/GlobalDCE/basicvariabletest.ll')
-rw-r--r--llvm/test/Transforms/GlobalDCE/basicvariabletest.ll6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/test/Transforms/GlobalDCE/basicvariabletest.ll b/llvm/test/Transforms/GlobalDCE/basicvariabletest.ll
new file mode 100644
index 00000000000..ae8ce3f7fd0
--- /dev/null
+++ b/llvm/test/Transforms/GlobalDCE/basicvariabletest.ll
@@ -0,0 +1,6 @@
+; RUN: opt < %s -passes=globaldce -S | FileCheck %s
+
+; CHECK-NOT: global
+@X = external global i32
+@Y = internal global i32 7
+
OpenPOWER on IntegriCloud