Add an UNSPEC_PROLOGUE_USE to prevent the link register from being considered dead.
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.law / missed-error1.C
blob5091e7d7b6191c339ef0cd13d6e40c3acf058b68
1 // Build don't link: 
2 // GROUPS passed missed-error
3 // missed-error file
4 // From: John Carr <jfc@Athena.MIT.EDU>
5 // Date:     Tue, 02 Feb 1993 07:38:53 EST
6 // Subject:  Re: g++ ignores language context of function pointers
7 // Message-ID: <9302021238.AA01513@Achates.MIT.EDU>
9 typedef void (*pfv)();
10 void f ();
12 extern "C"
14   typedef void (*pcfv)(void);
15   void cf (void);
18 pfv p = f;
19 pfv p2 = cf;                    // ERROR - mismatch XFAIL *-*-*
20 pcfv p3 = f;                    // ERROR - mismatch XFAIL *-*-*
21 pcfv p4 = cf;