blob: 1881fcb7f09904c43972fc18f92a8553165df511 [file] [log] [blame]
Richard Smith762bb9d2011-10-13 22:29:44 +00001// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
Sean Hunt0486d742009-11-28 04:44:28 +00002
Sean Hunta6c058d2010-01-13 09:01:02 +00003void operator "" (const char *); // expected-error {{expected identifier}}
Richard Smith2fb4ae32012-03-08 02:39:21 +00004void 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}}
7void operator "" tester (const char *); // \
8 expected-warning{{user-defined literal suffixes not starting with '_' are reserved}}