| 1 |
// Test that char8_t is recognized as a type specifier if -fchar8_t is enabled. |
| 2 |
// { dg-do compile } |
| 3 |
// { dg-options "-fchar8_t" } |
| 4 |
|
| 5 |
char8_t c8; |
| 6 |
|
| 7 |
signed char8_t sc8; /* { dg-error "signed" } */ |
| 8 |
unsigned char8_t uc8; /* { dg-error "unsigned" } */ |
| 9 |
|
| 10 |
short char8_t shc8; /* { dg-error "short" } */ |
| 11 |
long char8_t lgc8; /* { dg-error "long" } */ |
| 12 |
|
| 13 |
signed short char8_t ssc8; /* { dg-error "signed" } */ |
| 14 |
signed long char8_t slc8; /* { dg-error "signed" } */ |
| 15 |
unsigned short char8_t usc8; /* { dg-error "unsigned" } */ |
| 16 |
unsigned long char8_t ulc8; /* { dg-error "unsigned" } */ |