Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/g++.dg/parse/defarg4.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
comparison
equal
deleted
inserted
replaced
111:04ced10e8804 | 131:84e7813d76e9 |
---|---|
1 // { dg-do compile } | 1 // { dg-options "-fpermissive -w" } |
2 | 2 |
3 // Copyright (C) 2003 Free Software Foundation, Inc. | 3 // Copyright (C) 2003 Free Software Foundation, Inc. |
4 // Contributed by Nathan Sidwell 3 Jul 2003 <nathan@codesourcery.com> | 4 // Contributed by Nathan Sidwell 3 Jul 2003 <nathan@codesourcery.com> |
5 | 5 |
6 // PR c++ 9162. default args got left unprocessed | 6 // PR c++ 9162. default args got left unprocessed |
17 }; | 17 }; |
18 | 18 |
19 int Foo () | 19 int Foo () |
20 { | 20 { |
21 R s (1); | 21 R s (1); |
22 return 0; | |
22 } | 23 } |
23 | 24 |
24 template <typename T> struct Q | 25 template <typename T> struct Q |
25 { | 26 { |
26 int Foo (T, int = 0); | 27 int Foo (T, int = 0); |
27 }; | 28 }; |
28 | 29 |
29 int Foo (Q<int> *s) | 30 int Foo (Q<int> *s) |
30 { | 31 { |
31 s->Foo (1); | 32 s->Foo (1); |
33 return 1; | |
32 } | 34 } |