[PR rtl-optimization/115877][6/n] Add testcase from pr115877
[official-gcc.git] / gcc / testsuite / g++.dg / other / incomplete1.C
blobcb7970fad1c22b22df3e497c872b3e94f886e219
1 // PR c++/23089
2 // Origin: Flash Sheridan  <flash@pobox.com>
3 // ICE on incomplete type
4 // { dg-do compile }
5 // { dg-options "-O" }
7 void foo(struct A) {} // { dg-error "incomplete type|forward declaration" }