aboutsummaryrefslogtreecommitdiffstats
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 0000000..a97b66d
--- /dev/null
+++ b/test/Transforms/GlobalDCE/basicvariabletest.ll
@@ -0,0 +1,5 @@
+; RUN: opt < %s -globaldce -S | not grep global
+
+@X = external global i32
+@Y = internal global i32 7
+