(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
rtti/
incomplete1.C
// PR c++/28109
// { dg-do compile }

#include <typeinfo>

struct A;

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