summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/debug-info-block-end.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGen/debug-info-block-end.c')
-rw-r--r--clang/test/CodeGen/debug-info-block-end.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/clang/test/CodeGen/debug-info-block-end.c b/clang/test/CodeGen/debug-info-block-end.c
new file mode 100644
index 00000000000..72e8868bb46
--- /dev/null
+++ b/clang/test/CodeGen/debug-info-block-end.c
@@ -0,0 +1,17 @@
+// RUN: %clang_cc1 -g -S -emit-llvm %s -o - | FileCheck %s
+
+int bar();
+
+int foo(int i) {
+ int j = 0;
+ if (i) {
+ j = bar();
+ }
+ else {
+ j = bar() + 2;
+ }
+ return j;
+}
+
+// Make sure we don't have a line table entry for a block with no cleanups.
+// CHECK-NOT: i32 9, i32 3, metadata
OpenPOWER on IntegriCloud