Lines Matching full:const
6 void operator "" tag_bad (const char *); // expected-error {{literal operator 'operator "" tag_bad' must be in a namespace or global scope}}
7 friend void operator "" tag_good (const char *);
10 namespace ns { void operator "" ns_good (const char *); }
13 extern "C++" void operator "" extern_good (const char *);
14 extern "C++" { void operator "" extern_good (const char *); }
16 void fn () { void operator "" fn_bad (const char *); } // expected-error {{literal operator 'operator "" fn_bad' must be in a namespace or global scope}}
18 // One-param declarations (const char * was already checked)
27 void operator "" good (const char *, size_t);
28 void operator "" good (const wchar_t *, size_t);
29 void operator "" good (const char16_t *, size_t);
30 void operator "" good (const char32_t *, size_t);
33 void operator "" good (const char[]);
34 typedef const char c;
38 void operator "" cv_good (volatile const char *, const size_t);