| 1 |
// { dg-do assemble } |
| 2 |
// GROUPS passed missed-error |
| 3 |
// missed-error file |
| 4 |
// From: John Carr <[email protected]> |
| 5 |
// Date: Tue, 02 Feb 1993 07:38:53 EST |
| 6 |
// Subject: Re: g++ ignores language context of function pointers |
| 7 |
// Message-ID: <[email protected]> |
| 8 |
|
| 9 |
typedef void (*pfv)(); |
| 10 |
void f (); |
| 11 |
|
| 12 |
extern "C" |
| 13 |
{ |
| 14 |
typedef void (*pcfv)(void); |
| 15 |
void cf (void); |
| 16 |
} |
| 17 |
|
| 18 |
pfv p = f; |
| 19 |
pfv p2 = cf; // { dg-error "" "" { xfail *-*-* } } mismatch |
| 20 |
pcfv p3 = f; // { dg-error "" "" { xfail *-*-* } } mismatch |
| 21 |
pcfv p4 = cf; |