summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/return.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGenCXX/return.cpp')
-rw-r--r--clang/test/CodeGenCXX/return.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/return.cpp b/clang/test/CodeGenCXX/return.cpp
new file mode 100644
index 00000000000..2af1a5266e2
--- /dev/null
+++ b/clang/test/CodeGenCXX/return.cpp
@@ -0,0 +1,6 @@
+// RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck %s
+
+// CHECK: @_Z9no_return
+int no_return() {
+ // CHECK: unreachable
+}
OpenPOWER on IntegriCloud