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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [template/] [anon3.C] - Blame information for rev 693

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/28370
2
// { dg-do run }
3
 
4
namespace
5
{
6
  template struct A { static int *a; };
7
  template int *A::a = 0;
8
}
9
 
10
int *
11
foo ()
12
{
13
  return A::a;
14
}
15
 
16
int
17
main ()
18
{
19
  return foo() != 0;
20
}

powered by: WebSVN 2.1.0

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