xref: /llvm-project/llvm/test/Transforms/JumpThreading/2012-07-19-NoSuccessorIndirectBr.ll (revision b6909fe9ca1789db98c3481977468d33e9886182)
1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2; RUN: opt -S -passes=jump-threading < %s | FileCheck %s
3; PR 13405
4; Just check that it doesn't crash / assert
5
6define i32 @f() nounwind {
7; CHECK-LABEL: @f(
8; CHECK-NEXT:  entry:
9; CHECK-NEXT:    indirectbr ptr undef, []
10;
11entry:
12  indirectbr ptr undef, []
13}
14