Richard Smith | 9fcce65 | 2012-03-07 08:35:16 +0000 | [diff] [blame^] | 1 | // RUN: %clang_cc1 -std=c++11 -ast-print %s | FileCheck %s |
| 2 | |
| 3 | // FIXME: Print the trailing-return-type properly. |
| 4 | // CHECK: decltype(nullptr) operator "" _foo(const char *p, decltype(sizeof(int))); |
| 5 | auto operator"" _foo(const char *p, decltype(sizeof(int))) -> decltype(nullptr); |
| 6 | |
| 7 | // CHECK: const char *p1 = "bar1"_foo; |
| 8 | const char *p1 = "bar1"_foo; |
| 9 | // CHECK: const char *p2 = "bar2"_foo; |
| 10 | const char *p2 = R"x(bar2)x"_foo; |
| 11 | // CHECK: const char *p3 = u8"bar3"_foo; |
| 12 | const char *p3 = u8"bar3"_foo; |