aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp1y/pr60332.C
blob: c0a67a9f6cdb00c52dc3e2c670a1809477db1400 (plain)
1
2
3
4
5
6
// PR c++/60332
// { dg-do compile { target c++1y } }

void foo();

auto f = (auto(*)())(&foo);  // { dg-error "invalid" }