Home | History | Annotate | Download | only in over.literal
      1 // RUN: %clang_cc1 -std=c++11 %s -verify
      2 
      3 extern "C" void operator "" _a(const char *); // expected-error {{must have C++ linkage}}
      4 extern "C" template<char...> void operator "" _b(); // expected-error {{must have C++ linkage}}
      5 
      6 extern "C" {
      7   void operator "" _c(const char *); // expected-error {{must have C++ linkage}}
      8   template<char...> void operator "" _d(); // expected-error {{must have C++ linkage}}
      9   namespace N {
     10     void operator "" _e(const char *); // expected-error {{must have C++ linkage}}
     11     template<char...> void operator "" _f(); // expected-error {{must have C++ linkage}}
     12   }
     13 }
     14