8sa1-gcc/gcc/testsuite/g++.old-deja/g++.law/init5.C
Jeff Law 921e5a0eb4 Initial revision
From-SVN: r14840
1997-08-19 01:34:40 -06:00

19 lines
417 B
C

// Build don't link:
// Special g++ Options: -pedantic-errors
// GROUPS passed initialization
// init file
// From: dcb@us-es.sel.de
// Date: Mon, 12 Oct 92 07:51:52 +0100
// Subject: G++, ARM Page 141
// Message-ID: <9210120651.AA15257@us-es.sel.de>
extern int fred( int);
class X {
public :
void f( int = fred( 0) ) ; // ERROR - previous spec
} ;
void X::f( int x = fred( 0) ) {// ERROR - .*
}