Fortran: Fix PR 47485.
[gcc.git] / gcc / testsuite / g++.dg / warn / Wvexing-parse2.C
blob0dbeb7255cc458f477c6f31e72e470d9bcb40011
1 // PR c++/25814
2 // { dg-do compile { target c++11 } }
3 // Test -Wvexing-parse.  C++11 features.
5 struct X { };
6 struct T {
7   T(X);
8 };
10 void
11 fn1 (double (a))
13   auto l = [](){
14     int f(int(a)); // { dg-warning "parentheses were disambiguated as a function declaration" }
15   };
17   [[noreturn]] int(e)(); // { dg-warning "empty parentheses were disambiguated as a function declaration" }
19   T t1{X()};
20   T t2(X{});
21   T t3{X{}};
23   using U = int();