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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [template/] [subst1.C] - Blame information for rev 307

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 301 jeremybenn
// { dg-do compile }
2
 
3
// Copyright (C) 2002 Free Software Foundation, Inc.
4
// Contributed by Nathan Sidwell 16 Sep 2002 
5
 
6
// PR 7718. ICE.
7
 
8
template 
9
void default_initializer(const OBJECT &) { }
10
 
11
 
12
template 
13
class cContainer {
14
  public:
15
  template 
16
  void Add(const INITIALIZER &initializer) {
17
    init_function(initializer);
18
  }
19
};
20
 
21
int main() {
22
  cContainer > c;
23
 
24
  c.Add(42);
25
 
26
  return 0;
27
}

powered by: WebSVN 2.1.0

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