// RUN: %clang_cc1 -x c++ -std=gnu++11 -fsyntax-only -pedantic -verify=ext,expected %s
// RUN: %clang_cc1 -x c -std=gnu11 -fsyntax-only -pedantic -verify=ext,expected %s
// RUN: %clang_cc1 -x c++ -std=c++2b -fsyntax-only -pedantic -verify=cxx2b,expected -Wpre-c++2b-compat %s
// RUN: %clang_cc1 -x c++ -std=gnu++11 -fwchar-type=short -fno-signed-wchar -fsyntax-only -pedantic -verify=ext,expected %s
// RUN: %clang_cc1 -x c -std=gnu11 -fwchar-type=short -fno-signed-wchar -fsyntax-only -pedantic -verify=ext,expected %s
// RUN: %clang_cc1 -x c++ -std=c++17 -ftrigraphs -fsyntax-only -pedantic -verify=ext,expected -DTRIGRAPHS=1 %s
const char *errors =
"\u{}" // expected-error {{delimited escape sequence cannot be empty}}
"\u{" // expected-error {{expected '}'}}
"\u{h}" // expected-error {{invalid digit 'h' in escape sequence}}
"\x{}" // expected-error {{delimited escape sequence cannot be empty}}
"\x{" // expected-error {{expected '}'}}
"\x{h}" // expected-error {{invalid digit 'h' in escape sequence}}
"\o{}" // expected-error {{delimited escape sequence cannot be empty}}
"\o{" // expected-error {{expected '}'}}
"\o" // expected-error {{expected '{' after '\o' escape sequence}}
"\o{8}" // expected-error {{invalid digit '8' in escape sequence}}
"\U{8}" // expected-error {{\U used with no following hex digits}}
;
void
void
void
void
void
void
; // expected-warning 2{{trigraph converted}} \
// ext-warning {{extension}} cxx2b-warning {{C++2b}}