* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / ref-qual1.C
blob7fa826c3db43dc8fe942aaf2a494ae527b4c3a7f
1 // { dg-require-effective-target c++11 }
3 template <class,class> struct ST;
4 template <class T> struct ST<T,T> {};
6 struct A
8   int f() &;
9   char f() &&;
12 template <class T> struct B
14   int f() &;
15   char f() &&;
18 int main()
20   A a;
21   a.f();
22   A().f();
23   ST<decltype(a.f()), int>();
24   ST<decltype(A().f()), char>();
25   B<int> b;
26   b.f();
27   B<int>().f();
28   ST<decltype(b.f()), int>();
29   ST<decltype(B<int>().f()), char>();