* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / decltype17.C
blob47b70ecd89c96679763eb32a77bde6b1d13f9493
1 // PR c++/36628
2 // { dg-do run { target c++11 } }
3 // { dg-additional-options "-Wno-return-type" }
5 #include <typeinfo>
6 #include <string.h>
8 int  rvalue();
9 int& lvalueref();
10 int&& rvalueref();
12 decltype(true ? rvalue() : rvalue()) f()
15 decltype(true ? lvalueref() : lvalueref()) g()
18 decltype(true ? rvalueref() : rvalueref()) h()
21 int main()
23   if (strcmp (typeid(f).name(), "FivE") != 0)
24     return 1;
25   if (strcmp (typeid(g).name(), "FRivE") != 0)
26     return 2;
27   if (strcmp (typeid(h).name(), "FOivE") != 0)
28     return 3;
30   return 0;