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] - Blame information for rev 338

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 301 jeremybenn
// PR c++/33094
2
// { dg-final { scan-assembler "1BIiE1cE" } }
3
// { dg-final { scan-assembler-not "globl.*1BIiE1cE" } }
4
// { dg-final { scan-assembler-not "1CIiE1cE" } }
5
 
6
// Test that B::c is emitted as an internal symbol, and C::c is
7
// not emitted.
8
 
9
namespace
10
{
11
  template 
12
  class A
13
  {
14
    virtual T f1() { return c; }
15
    static const T c = 0;
16
  };
17
 
18
  template 
19
  class B
20
  {
21
    static const T c = 0;
22
  };
23
 
24
  template  const T B::c;
25
 
26
  template class A;
27
  template class B;
28
}

powered by: WebSVN 2.1.0

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