summaryrefslogtreecommitdiff
path: root/clang/test/CXX/over/over.oper/over.literal/p6.cpp
blob: 6bfb8560d688935207fdf5171272332f5e02d216 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// RUN: %clang_cc1 -std=c++11 %s -verify

extern "C" void operator "" _a(const char *); // expected-error {{must have C++ linkage}}
extern "C" template<char...> void operator "" _b(); // expected-error {{must have C++ linkage}}

extern "C" {
  void operator "" _c(const char *); // expected-error {{must have C++ linkage}}
  template<char...> void operator "" _d(); // expected-error {{must have C++ linkage}}
  namespace N {
    void operator "" _e(const char *); // expected-error {{must have C++ linkage}}
    template<char...> void operator "" _f(); // expected-error {{must have C++ linkage}}
  }
}