OpenCores
URL https://opencores.org/ocsvn/scarts/scarts/trunk

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [g++.dg/] [abi/] [arm_rtti1.C] - Blame information for rev 12

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 jlechner
// { 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 
8
 
9
extern const std::type_info& t1;
10
extern const std::type_info& t2;
11
 
12
bool f() {
13
  return t1 == t2;
14
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.