diff options
Diffstat (limited to 'packages/Python/lldbsuite/test/lang/c/const_variables/main.c')
-rw-r--r-- | packages/Python/lldbsuite/test/lang/c/const_variables/main.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/packages/Python/lldbsuite/test/lang/c/const_variables/main.c b/packages/Python/lldbsuite/test/lang/c/const_variables/main.c new file mode 100644 index 0000000..50a924e --- /dev/null +++ b/packages/Python/lldbsuite/test/lang/c/const_variables/main.c @@ -0,0 +1,23 @@ +#include <stdint.h> +#include <stdio.h> + +extern int foo(); +extern int bar(); +extern int baaz(int i); + +int main() +{ + int32_t index; + + foo(); + + index = 512; + + if (bar()) + { + printf("COMPILER PLEASE STOP HERE\n"); + index = 256; + } + + baaz(index); +} |