aboutsummaryrefslogtreecommitdiff
path: root/test/Transforms/GlobalDCE
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-08-17 22:36:45 +0000
committerChris Lattner <sabre@nondot.org>2002-08-17 22:36:45 +0000
commit22de210b60ab1fbc3a1625ee1b7aeade1e5ebd2f (patch)
treebd39bde74b46993c0099fb84a02b289b56a34dff /test/Transforms/GlobalDCE
parent9b761231240a06f4f0f193eb01b05c6e43812484 (diff)
Include a basic simple test.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3369 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/GlobalDCE')
-rw-r--r--test/Transforms/GlobalDCE/basicvariabletest.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Transforms/GlobalDCE/basicvariabletest.ll b/test/Transforms/GlobalDCE/basicvariabletest.ll
new file mode 100644
index 0000000000..a3d65c79f4
--- /dev/null
+++ b/test/Transforms/GlobalDCE/basicvariabletest.ll
@@ -0,0 +1,9 @@
+; RUN: if as < %s | opt -globaldce | dis | grep global
+; RUN: then exit 1
+; RUN: else exit 0
+; RUN: fi
+
+
+%X = uninitialized global int
+%Y = internal global int 7
+