blob: 8be9abb9686d496d0e5d0a2f27789175820abc79 [file] [log] [blame]
/* Test C11 UTF-8 string literal type. */
/* { dg-do compile } */
/* { dg-options "-std=c11" } */
_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");