aboutsummaryrefslogtreecommitdiff
path: root/test/SemaCXX/cxx11-ast-print.cpp
blob: 1f6f94781251a06b4761ee8f52814889e31c1394 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// RUN: %clang_cc1 -std=c++11 -ast-print %s | FileCheck %s

// FIXME: Print the trailing-return-type properly.
// CHECK: decltype(nullptr) operator "" _foo(const char *p, decltype(sizeof(int)));
auto operator"" _foo(const char *p, decltype(sizeof(int))) -> decltype(nullptr);

// CHECK: const char *p1 = "bar1"_foo;
const char *p1 = "bar1"_foo;
// CHECK: const char *p2 = "bar2"_foo;
const char *p2 = R"x(bar2)x"_foo;
// CHECK: const char *p3 = u8"bar3"_foo;
const char *p3 = u8"bar3"_foo;