gcc/testsuite/g++.dg/cpp26/raw-string2.C
raw| 1 | // C++26 P2558R2 - Add @, $, and ` to the basic character set |
| 2 | // { dg-do compile { target { ! { avr*-*-* mmix*-*-* *-*-aix* } } } } |
| 3 | // { dg-options "" } |
| 4 | |
| 5 | int a$b; |
| 6 | int a\u0024c; // { dg-error "universal character \\\\u0024 is not valid in an identifier" "" { target c++26 } } |
| 7 | int a\U00000024d; // { dg-error "universal character \\\\U00000024 is not valid in an identifier" "" { target c++26 } } |