blob: 515c6db3970ea89dbc2b9848a2b9a0328d01e989 [file] [log] [blame]
/* Test C17 UTF-8 string literal type. */
/* { dg-do compile } */
/* { dg-options "-std=c17" } */
_Static_assert (_Generic (u8"text", char*: 1, default: 2) == 1, "UTF-8 string literals have an unexpected type");
_Static_assert (_Generic (u8"x"[0], char: 1, default: 2) == 1, "UTF-8 string literal elements have an unexpected type");