2014-11-12 Andreas Tobler <andreast@gcc.gnu.org>
[official-gcc.git] / gcc / testsuite / g++.dg / abi / arm_rtti1.C
blob74f00033d9aa0805e3d8247907b862a19d6fcfb0
1 // { dg-do compile { target arm_eabi } }
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_ } }
7 #include <typeinfo>
9 extern const std::type_info& t1;
10 extern const std::type_info& t2;
12 bool f() {
13   return t1 == t2;