Files
clang-p2996/lldb/test/API/lang/c/local_variables/main.c
Pavel Labath aa56b30014 [lldb] Make TestLocalVariables.py compatible with the new pass manager
The new PM is more aggressive at inlining, which breaks assumptions in
the test => slap some __attribute__((noinlines)) to prevent that.
2021-02-04 11:27:08 +01:00

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