summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/other/void2.C
blob: 153e0f18122160ac0c5f93a8bd2721618a518ff4 (plain)
1
2
3
4
5
// PR c++/27423
// { dg-do compile }

void foo(void = 0);    // { dg-error "incomplete type|invalid use" }
void bar() { foo(); }