1 | // Make sure we correctly handle unicode in variable names. |
---|---|
2 | |
3 | struct A { |
4 | // We need a member variable in the context that could shadow our local |
5 | // variable. If our optimization code fails to handle this, then we won't |
6 | // correctly inject our local variable so that it won't get shadowed. |
7 | int foob\u00E1r = 2; |
8 | int foo() { |
9 | int foob\u00E1r = 3; |
10 | return foob\u00E1r; //%self.expect("expr foobár", substrs=['(int)', ' = 3']) |
11 | } |
12 | }; |
13 | |
14 | int main() { |
15 | A a; |
16 | return a.foo(); |
17 | } |
18 |