summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/rtti/incomplete1.C
blob: 2bf46e079827362a6f468e097e1d784a25233741 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// PR c++/28109
// { dg-do compile }

#include <typeinfo>

struct A;

void foo()
{
  A a;  // { dg-error "incomplete type" }
  typeid (a);
}