aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp/delimited-escape-seq-1.C
blob: a9c8a0c3d5d19a058cbbd0b753f5d6ce0e75adb4 (plain)
1
2
3
4
5
6
7
8
// P2290R3 - Delimited escape sequences
// { dg-do compile { target c++11 } }
// { dg-require-effective-target wchar }
// { dg-options "-pedantic" }

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