1 // Make sure we correctly handle $ in variable names. 2 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 //%self.expect("expr $__lldb_expr_result", substrs=['(int) $0 = 11']) 17 //%self.expect("expr $foo", substrs=['(int)', ' = 12']) 18 //%self.expect("expr $R0", substrs=['(int)', ' = 13']) 19 //%self.expect("expr int $foo = 123", error=True, substrs=["declaration conflicts"]) 20 return 0; //%self.expect("expr $0", substrs=['(int)', ' = 14']) 21 } 22