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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [init/] [init-ref4.C] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
// Origin: dgregor@gcc.gnu.org
2
// PR c++/11384
3
// foo::_S_something was not being emitted (as a weak definition).
4
 
5
// { dg-do run }
6
// { dg-require-weak "" }
7
 
8
template
9
  struct foo
10
  {
11
    static const T _S_something;
12
  };
13
 
14
template
15
  const T foo::_S_something = T();
16
 
17
int main()
18
{
19
  const int* p = &foo::_S_something;
20
  return 0;
21
}

powered by: WebSVN 2.1.0

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