Richard Smith | 762bb9d | 2011-10-13 22:29:44 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s |
Sean Hunt | 0486d74 | 2009-11-28 04:44:28 +0000 | [diff] [blame] | 2 | |
Sean Hunt | a6c058d | 2010-01-13 09:01:02 +0000 | [diff] [blame] | 3 | void operator "" (const char *); // expected-error {{expected identifier}} |
Richard Smith | 2fb4ae3 | 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}} |