blob: a161374a41d864ef6d11a8a8a8c1e1bb570456e7 [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 -fsyntax-only -verify -std=c++0x %s
Sean Hunt0486d742009-11-28 04:44:28 +00002
Sean Hunta6c058d2010-01-13 09:01:02 +00003void operator "" (const char *); // expected-error {{expected identifier}}
Douglas Gregor1155c422011-08-30 22:40:35 +00004void operator "k" foo(const char *); // expected-error {{string literal after 'operator' must be '""'}} \
5// expected-warning{{user-defined literal with suffix 'foo' is preempted by C99 hexfloat extension}}
6void operator "" tester (const char *); // expected-warning{{user-defined literal with suffix 'tester' is preempted by C99 hexfloat extension}}