summaryrefslogtreecommitdiff
path: root/test/Transforms/GlobalDCE/basicvariabletest.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Transforms/GlobalDCE/basicvariabletest.ll')
-rw-r--r--test/Transforms/GlobalDCE/basicvariabletest.ll5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Transforms/GlobalDCE/basicvariabletest.ll b/test/Transforms/GlobalDCE/basicvariabletest.ll
new file mode 100644
index 0000000000000..c883e58b84ce4
--- /dev/null
+++ b/test/Transforms/GlobalDCE/basicvariabletest.ll
@@ -0,0 +1,5 @@
+; RUN: llvm-as < %s | opt -globaldce | llvm-dis | not grep global
+
+@X = external global i32
+@Y = internal global i32 7
+