19 lines · cpp
1#include "comdat_rename.h"2extern void test(FOO *);3FOO foo;4int main() {5 test(&foo);6 foo.caller(20);7 return 0;8}9 10// The copy of 'caller' defined in this module -- it has11// '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