Debian Codegraph @

gcc/testsuite/g++.dg/ext/char8_t-sizeof-1.C

raw
1 // Test sizeof for char8_t.
2 // { dg-do compile }
3 // { dg-options "-std=c++17 -fchar8_t" }
4
5 static_assert(sizeof(u8'x') == 1);
6 static_assert(sizeof(char8_t) == 1);
7 static_assert(sizeof(__CHAR8_TYPE__) == 1);