OSDN Git Service

2004-10-05 Andrew Pinski <pinskia@physics.uc.edu>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / abi / arm_rtti1.C
1 // { dg-do compile { target arm*-*-eabi* arm*-*-symbianelf* } }
2 // { dg-options "-O2" } 
3 // Check that, even when optimizing, we emit an out-of-line call to
4 // the type-info comparison function.
5 // { dg-final { scan-assembler _ZNKSt9type_infoeqERKS_ } }
6
7 #include <typeinfo>
8
9 extern const std::type_info& t1;
10 extern const std::type_info& t2;
11
12 bool f() {
13   return t1 == t2;
14 }