summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/defarg2.C
blob: 571855a3c939c91de55c6f9930dbbff9e68663f6 (plain)
1
2
3
4
5
6
7
8
9
// { dg-do compile }

// Copyright (C) 2003 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 4 Jan 2003 <nathan@codesourcery.com>

// We erroneously prohibited default args on parenthesized function
// declarations.

void (foo)(int i = 0);