Home | History | Annotate | Download | only in lex.ext
      1 // RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s
      2 
      3 using size_t = decltype(sizeof(int));
      4 void operator "" _x(const wchar_t *, size_t);
      5 
      6 namespace std_example {
      7 
      8 int 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