1 // { dg-do assemble  }
2 // Copyright (C) 2000 Free Software Foundation, Inc.
3 // Contributed by Nathan Sidwell 23 Feb 2000 <nathan@codesourcery.com>
4 // Derived from a bug report by Marko Maekelae <Marko.Makela@HUT.FI>
5 
6 
7 struct A;
foo()8 void foo ()
9 {
10   sizeof ( void ());        // { dg-error "" } ISO forbids
11   sizeof ( void (A::*) ());
12   sizeof ( void (A::*) () const);
13 
14   sizeof (void (*) () const); // { dg-error "" } invalid quals
15   sizeof ( void () const);  // { dg-error "" } ISO forbids, ERROR - invalid quals
16 }
17