2 // g++ 1.36.1 bug 900208_04
4 // The Cfront 2.0 reference manual (5.3.3) says "This type must be an
5 // object type; functions cannot be allocated this way...".
7 // g++ fails to detect (at compile time) cases where an attempt is made to
8 // deallocate a function using delete.
10 // Cfront 2.0 passes this test.
12 // keywords: operator delete, function types
14 typedef void (func_type) ();
16 void global_function_1 (func_type *p)
18 delete p; // { dg-error "" } caught by Cfront 2.0 but not by g++ 1.36.1
21 int main () { return 0; }