aboutsummaryrefslogtreecommitdiffstats
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 0000000..0c10253
--- /dev/null
+++ b/test/Transforms/ADCE/unreachable-function.ll
@@ -0,0 +1,5 @@
+; RUN: llvm-upgrade < %s | llvm-as | opt -adce -disable-output
+
+void %test() {
+ unreachable
+}