summaryrefslogtreecommitdiff
path: root/test/Other/lint.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Other/lint.ll')
-rw-r--r--test/Other/lint.ll4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/Other/lint.ll b/test/Other/lint.ll
index dee3d11d2fb5e..fcef7ee2d5713 100644
--- a/test/Other/lint.ll
+++ b/test/Other/lint.ll
@@ -161,5 +161,7 @@ declare i32 @nonstruct_callee() nounwind
define void @struct_caller() nounwind {
entry:
call %struct bitcast (i32 ()* @foo to %struct ()*)()
- ret void
+
+ ; CHECK: Undefined behavior: indirectbr with no destinations
+ indirectbr i8* null, []
}