aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/cpp/delimited-escape-seq-2.c
blob: 71c98656323250330933375c88c7e193d25196a1 (plain)
1
2
3
4
5
6
7
8
9
10
/* P2290R3 - Delimited escape sequences */
/* { dg-do compile } */
/* { dg-require-effective-target wchar } */
/* { dg-options "-std=gnu99 -Wno-c++-compat -pedantic-errors" } */

typedef __CHAR32_TYPE__ char32_t;

const char32_t *a = U"\u{1234}";	/* { dg-error "delimited escape sequences are only valid in" } */
const char32_t *b = U"\x{1234}";	/* { dg-error "delimited escape sequences are only valid in" } */
const char32_t *c = U"\o{1234}";	/* { dg-error "delimited escape sequences are only valid in" } */