xref: /llvm-project/compiler-rt/test/profile/Inputs/comdat_rename_2.cpp (revision 5c31b8b94fddc7c109672964c72670430fe30887)
1 #include "comdat_rename.h"
2 extern void test(FOO *);
3 FOO foo;
main()4 int main() {
5   test(&foo);
6   foo.caller(20);
7   return 0;
8 }
9 
10 // The copy of 'caller' defined in this module -- it has
11 // 'callee' call remaining.
12 //
13 // CHECK-LABEL: define {{.*}}caller{{.*}}
14 // CHECK: {{.*}} call {{.*}}
15 // CHECK-NOT: br i1 {{.*}}
16 // CHECK: br {{.*}}label %[[BB1:.*]], label{{.*}}!prof ![[PD1:[0-9]+]]
17 // CHECK: {{.*}}[[BB1]]:
18 // CHECK:![[PD1]] = !{!"branch_weights", i32 0, i32 1}
19