cxx0x-literal-operators.cpp revision 762bb9d0ad20320b9f97a841dce57ba5e8e48b07
1762bb9d0ad20320b9f97a841dce57ba5e8e48b07Richard Smith// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
20486d746019f8310589b1f0d92edcc4bb3916b33Sean Hunt
3a6c058dd75c5563cced821fc16766a7cc179e00cSean Huntvoid operator "" (const char *); // expected-error {{expected identifier}}
41155c42e7b1b4e401bb0a331a6d715d637958c75Douglas Gregorvoid operator "k" foo(const char *); // expected-error {{string literal after 'operator' must be '""'}} \
51155c42e7b1b4e401bb0a331a6d715d637958c75Douglas Gregor// expected-warning{{user-defined literal with suffix 'foo' is preempted by C99 hexfloat extension}}
61155c42e7b1b4e401bb0a331a6d715d637958c75Douglas Gregorvoid operator "" tester (const char *); // expected-warning{{user-defined literal with suffix 'tester' is preempted by C99 hexfloat extension}}
7