Revert "Reland '[flang] Allow to pass an async id to allocate the descriptor (#118713...
[llvm-project.git] / clang / test / CXX / over / over.oper / over.literal / p7.cpp
blob244f043d4412e73bc40b09aece72265e67923279
1 // RUN: %clang_cc1 -std=c++11 %s -verify
2 // expected-no-diagnostics
4 constexpr int operator ""_a(const char *c) {
5 return c[0];
8 static_assert(operator ""_a("foo") == 'f', "");
10 void puts(const char *);
11 static inline void operator ""_puts(const char *c) {
12 puts(c);
14 void f() {
15 operator ""_puts("foo");
16 operator ""_puts("bar");