OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.pt/] [instantiate5.C] - Blame information for rev 338

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 305 jeremybenn
// { dg-do link  }
2
// { dg-additional-sources " instantiate5.cc instantiate5-main.cc" }
3
 
4
// `global constructors' are given the same name, based on foo(), on
5
// both translation units, which is wrong, because it must be possible
6
// to define template functions in multiple translation units, as long
7
// as they're given the same definition
8
 
9
// simplified from test case submitted by Daniel X. Pape 
10
 
11
template  void foo() { }
12
inline int bar() { foo(); return 1; }
13
static int i = bar();

powered by: WebSVN 2.1.0

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