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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// Test that we don't emit unneeded copies of static data member template
2
// instantiations.
3
 
4
// Disable debug info so we don't get confused by the symbol name there.
5
// { dg-options "-g0" }
6
 
7
template  struct A {
8
  static const T t = 0;
9
};
10
 
11
template  const T A::t;
12
 
13
int i;
14
int main ()
15
{
16
  i = A::t;             // Should just use the value
17
}

powered by: WebSVN 2.1.0

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