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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.dg/] [ext/] [visibility/] [anon6.C] - Diff between revs 301 and 338

Only display areas with differences | Details | Blame | View Log

Rev 301 Rev 338
// PR c++/33094
// PR c++/33094
// { dg-final { scan-assembler "1BIiE1cE" } }
// { dg-final { scan-assembler "1BIiE1cE" } }
// { dg-final { scan-assembler-not "globl.*1BIiE1cE" } }
// { dg-final { scan-assembler-not "globl.*1BIiE1cE" } }
// { dg-final { scan-assembler-not "1CIiE1cE" } }
// { dg-final { scan-assembler-not "1CIiE1cE" } }
// Test that B::c is emitted as an internal symbol, and C::c is
// Test that B::c is emitted as an internal symbol, and C::c is
// not emitted.
// not emitted.
namespace
namespace
{
{
  template 
  template 
  class A
  class A
  {
  {
    virtual T f1() { return c; }
    virtual T f1() { return c; }
    static const T c = 0;
    static const T c = 0;
  };
  };
  template 
  template 
  class B
  class B
  {
  {
    static const T c = 0;
    static const T c = 0;
  };
  };
  template  const T B::c;
  template  const T B::c;
  template class A;
  template class A;
  template class B;
  template class B;
}
}
 
 

powered by: WebSVN 2.1.0

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