The new PM is more aggressive at inlining, which breaks assumptions in the test => slap some __attribute__((noinlines)) to prevent that.
16 lines
273 B
C
16 lines
273 B
C
#include <stdio.h>
|
|
|
|
void __attribute__((noinline)) bar(unsigned i) { printf("%d\n", i); }
|
|
|
|
void __attribute__((noinline)) foo(unsigned j) {
|
|
unsigned i = j;
|
|
bar(i);
|
|
i = 10;
|
|
bar(i); // Set break point at this line.
|
|
}
|
|
|
|
int main(int argc, char** argv)
|
|
{
|
|
foo(argc);
|
|
}
|