p9.cpp revision 9fcce65e7e1307b5b8da9be13e4092d6bb94dc1d
1// RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s 2 3using size_t = decltype(sizeof(int)); 4void operator "" _x(const wchar_t *, size_t); 5 6namespace std_example { 7 8int main() { 9 L"A" "B" "C"_x; 10 "P"_x "Q" "R"_y; // expected-error {{differing user-defined suffixes ('_x' and '_y') in string literal concatenation}} 11} 12 13} 14