2011-10-14 06:29:44 +08:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
|
2009-11-28 12:44:28 +08:00
|
|
|
|
2010-01-13 17:01:02 +08:00
|
|
|
void operator "" (const char *); // expected-error {{expected identifier}}
|
2011-08-31 06:40:35 +08:00
|
|
|
void operator "k" foo(const char *); // expected-error {{string literal after 'operator' must be '""'}} \
|
|
|
|
// expected-warning{{user-defined literal with suffix 'foo' is preempted by C99 hexfloat extension}}
|
|
|
|
void operator "" tester (const char *); // expected-warning{{user-defined literal with suffix 'tester' is preempted by C99 hexfloat extension}}
|