1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --function-signature --check-attributes --check-globals
2 ; RUN: opt < %s -passes=attributor -attributor-annotate-decl-cs -S | FileCheck %s
5 ; CHECK: declare i32 @foo1()
7 ; CHECK: declare i32 @foo2()
9 ; CHECK: declare i32 @foo3()
14 define internal i32 @bar() {
15 ; CHECK-LABEL: define {{[^@]+}}@bar() {
16 ; CHECK-NEXT: [[TMP1:%.*]] = call i32 @foo1()
17 ; CHECK-NEXT: [[TMP2:%.*]] = call i32 @foo2()
18 ; CHECK-NEXT: [[TMP3:%.*]] = call i32 @foo3()
19 ; CHECK-NEXT: ret i32 undef
28 ; CHECK-LABEL: define {{[^@]+}}@baz() {
29 ; CHECK-NEXT: [[TMP1:%.*]] = call i32 @bar()
30 ; CHECK-NEXT: ret i32 0
36 ; We should never derive anything here
37 ; CHECK-NOT: attributes