blob: b6476d5f90543b08212e6d1c7dc19566a3580af0 [file] [log] [blame]
// Special g++ Options: -fhandle-signatures
// GROUPS passed gb sigptr initialization
// Test initialization of a local signature pointer.
extern "C"
{
int printf (char *, ...);
}
class C
{
public:
char * f (void) { return "PA"; }
char * g (int) { return "SS"; }
};
signature S
{
char * f (void);
char * g (int);
};
C a;
S * p = &a;
int main (void)
{
printf ("%s%s\n", p->f (), p->g (0));
return 0;
}