aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 0000000000..353276fe2f
--- /dev/null
+++ b/test/Transforms/ADCE/unreachable-function.ll
@@ -0,0 +1,5 @@
+; RUN: llvm-as < %s | opt -adce -disable-output
+
+void %test() {
+ unreachable
+}