freebsd-skq/test/Parser/cxx0x-literal-operators.cpp

6 lines
275 B
C++
Raw Normal View History

2010-01-01 10:34:51 +00:00
// RUN: %clang_cc1 -fsyntax-only -verify -std=c++0x %s
2009-12-01 11:08:04 +00:00
2010-01-15 15:39:40 +00:00
void operator "" (const char *); // expected-error {{expected identifier}}
void operator "k" foo(const char *); // expected-error {{string literal after 'operator' must be '""'}}
void operator "" tester (const char *);