summaryrefslogtreecommitdiff
path: root/test/profile/Inputs/comdat_rename.h
diff options
context:
space:
mode:
Diffstat (limited to 'test/profile/Inputs/comdat_rename.h')
-rw-r--r--test/profile/Inputs/comdat_rename.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/profile/Inputs/comdat_rename.h b/test/profile/Inputs/comdat_rename.h
new file mode 100644
index 000000000..53e1007ac
--- /dev/null
+++ b/test/profile/Inputs/comdat_rename.h
@@ -0,0 +1,13 @@
+struct FOO {
+ FOO() : a(0), b(0) {}
+ int callee();
+ __attribute__((noinline)) void caller(int n) {
+ int r = callee();
+ if (r == 0) {
+ a += n;
+ b += 1;
+ }
+ }
+ int a;
+ int b;
+};