You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
342 B
18 lines
342 B
; RUN: opt -S -function-attrs < %s | FileCheck %s
|
|
; RUN: opt -S -passes=function-attrs < %s | FileCheck %s
|
|
|
|
define void @f() {
|
|
; CHECK-LABEL: define void @f() #0 {
|
|
call void @g() [ "unknown"() ]
|
|
ret void
|
|
}
|
|
|
|
define void @g() {
|
|
; CHECK-LABEL: define void @g() #0 {
|
|
call void @f()
|
|
ret void
|
|
}
|
|
|
|
|
|
; CHECK: attributes #0 = { nofree nounwind }
|