gcc/testsuite/g++.dg/ext/utf-typedef-cxx0x.C
raw| 1 | /* Contributed by Kris Van Hees <[email protected]> */ |
| 2 | /* Ensure that a typedef to char16_t/char32_t issues an error in c++0x. */ |
| 3 | /* { dg-do compile { target c++11 } } */ |
| 4 | |
| 5 | typedef short unsigned int char16_t; /* { dg-error "redeclaration" } */ |
| 6 | typedef unsigned int char32_t; /* { dg-error "redeclaration" } */ |