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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [abi/] [arm_rtti1.C] - Blame information for rev 801

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// { 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.