summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/rtti/predefined-rtti-macro-2.C
blob: 284f2f64a23b71753ad4750c221a3038e421da5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// { dg-do compile }
// { dg-options "-fno-rtti" }

struct B { };

void f(B* bp)
{
  bp =
#ifndef __GXX_RTTI
  static_cast<B*>(0);
#endif
}