New testcase that ADCE shouldn't crash on
authorChris Lattner <sabre@nondot.org>
Sun, 17 Oct 2004 23:44:02 +0000 (23:44 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 17 Oct 2004 23:44:02 +0000 (23:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17105 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/ADCE/unreachable-function.ll [new file with mode: 0644]

diff --git a/test/Transforms/ADCE/unreachable-function.ll b/test/Transforms/ADCE/unreachable-function.ll
new file mode 100644 (file)
index 0000000..353276f
--- /dev/null
@@ -0,0 +1,5 @@
+; RUN: llvm-as < %s | opt -adce -disable-output
+
+void %test() {
+       unreachable
+}