Files
clang-p2996/compiler-rt/test/profile/Inputs/comdat_rename.h
Renato Golin fbd3de7851 Try to fix another profile test
Another CFG optimisation patch (280364) has broken bad profile tests, and this
is a similar attempt to fix the test without changing the semantics.

llvm-svn: 280373
2016-09-01 14:44:02 +00:00

14 lines
220 B
C

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;
};