diff options
Diffstat (limited to 'test/profile/Inputs/comdat_rename.h')
-rw-r--r-- | test/profile/Inputs/comdat_rename.h | 13 |
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 0000000000000..d30628f13b63c --- /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 volatile b; +}; |