From: Nathan Sidwell Date: Thu, 24 Feb 2000 09:48:41 +0000 (+0000) Subject: * g++.old-deja/g++.other/sizeof5.C: New test. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=da3a471976d248b4a54e90ffaf6f0e264b687737;p=gcc.git * g++.old-deja/g++.other/sizeof5.C: New test. From-SVN: r32133 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index a2da8ba8c2a..c162eefd01e 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2000-02-24 Nathan Sidwell + + * g++.old-deja/g++.other/sizeof5.C: New test. + 2000-02-23 Nathan Sidwell * g++.old-deja/g++.pt/memtemp79.C: Fixed. Remove XFAIL. diff --git a/gcc/testsuite/g++.old-deja/g++.other/sizeof5.C b/gcc/testsuite/g++.old-deja/g++.other/sizeof5.C new file mode 100644 index 00000000000..8b56053b029 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.other/sizeof5.C @@ -0,0 +1,17 @@ +// Build don't link: +// Copyright (C) 2000 Free Software Foundation, Inc. +// Contributed by Nathan Sidwell 23 Feb 2000 +// Derived from a bug report by Marko Maekelae + +// crash test + +struct A; +void foo () +{ + sizeof ( void ()); // ERROR - ISO forbids + sizeof ( void (A::*) ()); + sizeof ( void (A::*) () const); + + sizeof (void (*) () const); // ERROR - invalid quals + sizeof ( void () const); // ERROR - ISO forbids, ERROR - invalid quals +}