summaryrefslogtreecommitdiff
path: root/llvm/test/Other/opt-twice.ll
blob: 777e7230a344e1ae36302c60b1ef7df373745ec1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
; The pass here doesn't matter (we use deadargelim), but test
; that the -run-twice options exists, generates output, and
; doesn't crash
; RUN: opt -run-twice -passes=deadargelim -S < %s | FileCheck %s

; CHECK: define internal void @test
define internal {} @test() {
  ret {} undef
}

define void @caller() {
  call {} @test()
  ret void
}