comparison gcc/testsuite/g++.dg/ext/char8_t-type-specifier-2.C @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents
children
comparison
equal deleted inserted replaced
131:84e7813d76e9 145:1830386684a0
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" } */