aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/cfi-check-fail.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/cfi-check-fail.c')
-rw-r--r--test/CodeGen/cfi-check-fail.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/CodeGen/cfi-check-fail.c b/test/CodeGen/cfi-check-fail.c
index b850193b54ac..0eb786ab963b 100644
--- a/test/CodeGen/cfi-check-fail.c
+++ b/test/CodeGen/cfi-check-fail.c
@@ -72,3 +72,8 @@ void caller(void (*f)()) {
// CHECK: [[CONT5]]:
// CHECK: ret void
+
+// CHECK: define weak void @__cfi_check(i64, i8*, i8*)
+// CHECK-NOT: }
+// CHECK: call void @llvm.trap()
+// CHECK-NEXT: ret void