* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / trailing8.C
blob304845e66d8cad5aa7547217505b0f44e8b2859c
1 // PR c++/54359
2 // { dg-require-effective-target c++11 }
4 int& ref(int& x) { return x; }
5 const int& ref(const int& x) { return x; }
7 class A {
8     int x;
9     int f() const;
10     auto test1() const -> decltype(this);
11     auto test2() const -> decltype(ref(x));
12     auto test3() const -> decltype(f());
15 auto A::test1() const -> decltype(this) {
16     return this;
19 auto A::test2() const -> decltype(ref(x)) {
20     return ref(x);
23 auto A::test3() const -> decltype(f()) {
24     return f();