hanchenye-llvm-project/clang/test/Parser/cxx0x-literal-operators.cpp

6 lines
275 B
C++

// RUN: %clang_cc1 -fsyntax-only -verify -std=c++0x %s
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 *);