summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/rtti5.C
blob: a8ab885552c6dd9f55d013c874209f34a6a7e31d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// { dg-do assemble  }
// { dg-options "-fno-rtti" }

// Copyright (C) 1999 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 9 Apr 1999 <nathan@acm.org>
// derrived from bug report from Alexander Zvyagin <zvyagin@mx.ihep.su>

// check we don't die with disabled rtti


int main(void) {
  int i;
  typeid(i); // { dg-error "" } rtti disabled
}