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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [abi/] [key2.C] - Rev 826

Compare with Previous | Blame | View Log

// On Darwin, key methods that are inline result in comdat style things.  */
// PR darwin/25908

// { dg-do compile { target *-*-darwin* } }
// { dg-final { scan-assembler ".globl __ZTV1f\\n       .weak_definition __ZTV1f(\\n    .section __DATA,__const_coal,coalesced)?\\n     .align" } }
// { dg-final { scan-assembler ".globl __ZTS1f\\n       .weak_definition __ZTS1f\\n     .section __TEXT,__const_coal,coalesced" } }
// { dg-final { scan-assembler ".globl __ZTI1f\\n       .weak_definition __ZTI1f(\\n    .section __DATA,__const_coal,coalesced)?\\n     .align" } }

class f
{
  virtual void g();
  virtual void h();
} c;
inline void f::g() {}
int sub(void)
{}

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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