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

30 lines
409 B
C

// Special g++ Options: -fhandle-signatures
// GROUPS passed gb sigptr default-argument
// Test calling a signature member function with default argument.
extern "C"
{
int printf (char *, ...);
}
class C
{
public:
char * f (char * text) { return text; }
};
signature S
{
char * f (char * text = "PA");
};
C a;
S * p = &a;
int main (void)
{
printf ("%s%s\n", p->f (), p->f ("SS"));
return 0;
}