aboutsummaryrefslogtreecommitdiff
path: root/test/Analysis/CallGraph/do-nothing-intrinsic.ll
blob: f28ad10f57c8aa4a342759fd0b0adcdcd0427338 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
; RUN: opt < %s -basiccg
; PR13903

define void @main() {
  invoke void @llvm.donothing()
          to label %ret unwind label %unw
unw:
  %tmp = landingpad i8 personality i8 0 cleanup
  br label %ret
ret:
  ret void
}
declare void @llvm.donothing() nounwind readnone