Home | History | Annotate | Download | only in lex.ext
      1 // RUN: %clang_cc1 -fsyntax-only -std=c++11 -verify %s
      2 
      3 using size_t = decltype(sizeof(int));
      4 
      5 int &operator "" _x1 (const char *);
      6 double &i1 = 'a'_x1; // expected-error {{no matching literal operator}}
      7 double &operator "" _x1 (wchar_t);
      8 double &i2 = L'a'_x1;
      9 double &i3 = 'a'_x1; // expected-error {{no matching literal operator}}
     10 double &i4 = operator"" _x1('a'); // ok
     11 
     12 char &operator "" _x1(char16_t);
     13 char &i5 = u'a'_x1; // ok
     14 double &i6 = L'a'_x1; // ok
     15