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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// { dg-do compile }
2
 
3
// Copyright (C) 2003 Free Software Foundation, Inc.
4
// Contributed by Nathan Sidwell 3 Jul 2003 
5
 
6
// PR c++ 9162. default args got left unprocessed
7
 
8
struct S {
9
  friend int foo (const S&, int = 100);
10
};
11
S s;
12
int i = foo (s);
13
 
14
struct R
15
{
16
  template  R (T, int = 0);
17
};
18
 
19
int Foo ()
20
{
21
  R s (1);
22
}
23
 
24
template  struct Q
25
{
26
  int Foo (T, int = 0);
27
};
28
 
29
int Foo (Q *s)
30
{
31
  s->Foo (1);
32
}

powered by: WebSVN 2.1.0

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