Require target lra in gcc.dg/pr108095.c
[official-gcc.git] / gcc / testsuite / gcc.dg / c2x-utf8str-type.c
blobebdde97b57a3c92e03e26e39eef90b172acd4b2b
1 /* Test C2X UTF-8 string literal type. */
2 /* { dg-do compile } */
3 /* { dg-options "-std=c2x" } */
5 _Static_assert (_Generic (u8"text", unsigned char*: 1, default: 2) == 1, "UTF-8 string literals have an unexpected type");
6 _Static_assert (_Generic (u8"x"[0], unsigned char: 1, default: 2) == 1, "UTF-8 string literal elements have an unexpected type");