Richard Smith | 9ca5c42 | 2011-10-13 22:29:44 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s |
Alexis Hunt | 3445850 | 2009-11-28 04:44:28 +0000 | [diff] [blame] | 2 | |
Alexis Hunt | c88db06 | 2010-01-13 09:01:02 +0000 | [diff] [blame] | 3 | void operator "" (const char *); // expected-error {{expected identifier}} |
Richard Smith | 0df56f4 | 2012-03-08 02:39:21 +0000 | [diff] [blame] | 4 | void operator "k" foo(const char *); // \ |
| 5 | expected-error {{string literal after 'operator' must be '""'}} \ |
| 6 | expected-warning{{user-defined literal suffixes not starting with '_' are reserved}} |
| 7 | void operator "" tester (const char *); // \ |
| 8 | expected-warning{{user-defined literal suffixes not starting with '_' are reserved}} |