mirror of
https://gcc.gnu.org/git/gcc.git
synced 2025-01-02 00:43:44 +08:00
* g++.old-deja/g++.other/sizeof5.C: New test.
From-SVN: r32133
This commit is contained in:
parent
41cbc04c44
commit
da3a471976
@ -1,3 +1,7 @@
|
||||
2000-02-24 Nathan Sidwell <nathan@codesourcery.com>
|
||||
|
||||
* g++.old-deja/g++.other/sizeof5.C: New test.
|
||||
|
||||
2000-02-23 Nathan Sidwell <nathan@codesourcery.com>
|
||||
|
||||
* g++.old-deja/g++.pt/memtemp79.C: Fixed. Remove XFAIL.
|
||||
|
17
gcc/testsuite/g++.old-deja/g++.other/sizeof5.C
Normal file
17
gcc/testsuite/g++.old-deja/g++.other/sizeof5.C
Normal file
@ -0,0 +1,17 @@
|
||||
// Build don't link:
|
||||
// Copyright (C) 2000 Free Software Foundation, Inc.
|
||||
// Contributed by Nathan Sidwell 23 Feb 2000 <nathan@codesourcery.com>
|
||||
// Derived from a bug report by Marko Maekelae <Marko.Makela@HUT.FI>
|
||||
|
||||
// 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
|
||||
}
|
Loading…
Reference in New Issue
Block a user