summaryrefslogtreecommitdiff
path: root/test/Transforms/ADCE/unreachable-function.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Transforms/ADCE/unreachable-function.ll')
-rw-r--r--test/Transforms/ADCE/unreachable-function.ll5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Transforms/ADCE/unreachable-function.ll b/test/Transforms/ADCE/unreachable-function.ll
new file mode 100644
index 0000000000000..86c55f5916887
--- /dev/null
+++ b/test/Transforms/ADCE/unreachable-function.ll
@@ -0,0 +1,5 @@
+; RUN: llvm-as < %s | opt -adce -disable-output
+
+define void @test() {
+ unreachable
+}