☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
ext
/
char8_t-sizeof-1.C
☽
☼
gcc/testsuite/g++.dg/ext/char8_t-sizeof-1.C
code
plain
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);