xref: /llvm-project/lldb/test/API/commands/expression/dollar-in-variable/main.c (revision 048d11de43be087fd2fa0c5e35f20486f6094c29)
1 // Make sure we correctly handle $ in variable names.
2 
main()3 int main() {
4   // Some variables that might conflict with our variables below.
5   int __lldb_expr_result = 2;
6   int $$foo = 1;
7   int R0 = 2;
8 
9   // Some variables with dollar signs that should work (and shadow
10   // any built-in LLDB variables).
11   int $__lldb_expr_result = 11;
12   int $foo = 12;
13   int $R0 = 13;
14   int $0 = 14;
15 
16   return 0; // break here
17 }
18