Daily bump.
[gcc.git] / gcc / testsuite / g++.dg / warn / Wvexing-parse5.C
blob3422e706160b62fb8b4c848eaa850c610e4a5e71
1 // PR c++/25814
2 // { dg-do compile }
3 // Test -Wvexing-parse in a template.
5 struct X { };
7 template<typename T>
8 void fn ()
10   T t(); // { dg-warning "empty parentheses were disambiguated as a function declaration" }
11   T a(X()); // { dg-warning "parentheses were disambiguated as a function declaration" }
12   X x(T()); // { dg-warning "parentheses were disambiguated as a function declaration" }
13   int i(T()); // { dg-warning "parentheses were disambiguated as a function declaration" }