Debian Codegraph @

gcc/testsuite/g++.dg/rtti/incomplete1.C

raw
1 // PR c++/28109
2 // { dg-do compile }
3
4 #include <typeinfo>
5
6 struct A;
7
8 void foo()
9 {
10 A a; // { dg-error "incomplete type" }
11 typeid (a);
12 }