Merge from mainline (gomp-merge-2005-02-26).
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / sizeof5.C
blobae076205bd8fe77ceb8deb6116ee1b4f4146a3e7
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>
7 struct A;
8 void foo ()
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