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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.old-deja/] [g++.benjamin/] [14139.C] - Blame information for rev 699

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 699 jeremybenn
// { dg-do assemble  }
2
// 981203 bkoz
3
// g++/14309
4
// test for global functions, mf's, and templatized mf's.
5
 
6
static int fooe_1(void) { return 5; }
7
static int fooe_2(int x = fooe_1()) { return x; }
8
 
9
struct antigua {
10
  static int& foo_1();
11
  static int foo_2(int& x = antigua::foo_1());
12
  static int foo_3(int x = fooe_2());
13
};
14
 
15
template 
16
  struct jamacia {
17
    static int& foo_1();
18
    static int foo_2(int& x = antigua::foo_1());
19
    static int foo_3(int x = fooe_2());
20
  };
21
 
22
template class jamacia;

powered by: WebSVN 2.1.0

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