1 // RUN: %clang_cc1 -std=c++11 %s -verify 2 // expected-no-diagnostics 3 operator ""_a(const char * c)4constexpr int operator "" _a(const char *c) { 5 return c[0]; 6 } 7 8 static_assert(operator "" _a("foo") == 'f', ""); 9 10 void puts(const char *); operator ""_puts(const char * c)11static inline void operator "" _puts(const char *c) { 12 puts(c); 13 } f()14void f() { 15 operator "" _puts("foo"); 16 operator "" _puts("bar"); 17 } 18