blob: 0dbeb7255cc458f477c6f31e72e470d9bcb40011 [file] [log] [blame]
// PR c++/25814
// { dg-do compile { target c++11 } }
// Test -Wvexing-parse. C++11 features.
struct X { };
struct T {
T(X);
};
void
fn1 (double (a))
{
auto l = [](){
int f(int(a)); // { dg-warning "parentheses were disambiguated as a function declaration" }
};
[[noreturn]] int(e)(); // { dg-warning "empty parentheses were disambiguated as a function declaration" }
T t1{X()};
T t2(X{});
T t3{X{}};
using U = int();
}