brintos

brintos / llvm-project-archived public Read only

0
0
Text · 486 B · 82e38b1 Raw
18 lines · cpp
1// Make sure we correctly handle unicode in variable names.2 3struct A {4  // We need a member variable in the context that could shadow our local5  // variable. If our optimization code fails to handle this, then we won't6  // 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 14int main() {15  A a;16  return a.foo();17}18