summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/other/incomplete1.C
blob: cb7970fad1c22b22df3e497c872b3e94f886e219 (plain)
1
2
3
4
5
6
7
// PR c++/23089
// Origin: Flash Sheridan  <flash@pobox.com>
// ICE on incomplete type
// { dg-do compile }
// { dg-options "-O" }

void foo(struct A) {} // { dg-error "incomplete type|forward declaration" }