Home | History | Annotate | Download | only in over.literal
      1 // RUN: %clang_cc1 -std=c++11 %s -verify
      2 // expected-no-diagnostics
      3 
      4 constexpr 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 *);
     11 static inline void operator "" _puts(const char *c) {
     12   puts(c);
     13 }
     14 void f() {
     15   operator "" _puts("foo");
     16   operator "" _puts("bar");
     17 }
     18