* g++.old-deja/g++.brendan/new2.C (main): Use sizeof.
authorJ"orn Rennecke <amylaar@redhat.com>
Wed, 14 Feb 2001 21:42:30 +0000 (21:42 +0000)
committerJoern Rennecke <amylaar@gcc.gnu.org>
Wed, 14 Feb 2001 21:42:30 +0000 (21:42 +0000)
From-SVN: r39692

gcc/testsuite/ChangeLog
gcc/testsuite/g++.old-deja/g++.brendan/new2.C

index b3fad1ab26ea653a23a43d6ef7f5600f326a74f7..074ac2d6d005c06c648a27cd36d7b34da14aca9f 100644 (file)
@@ -1,3 +1,7 @@
+Wed Feb 14 21:41:17 2001  J"orn Rennecke <amylaar@redhat.com>
+
+       * g++.old-deja/g++.brendan/new2.C (main): Use sizeof.
+
 Wed Feb 14 21:31:25 2001  J"orn Rennecke <amylaar@redhat.com>
 
        * gcc.c-torture/execute/920302-1.c (execute):
index 72a8edf3ccb454eda68d8df0beb63dd766c667d0..3d0b51808968411b67636e7ad3b561f5a869c4bd 100644 (file)
@@ -35,9 +35,9 @@ int main ()
        base*           base_ptr;
        derived*        derived_ptr;
 
-       expected_size = 4;
+       expected_size = sizeof (int);
        base_ptr = new base;
-       expected_size = 8;
+       expected_size = 2 * sizeof (int);
        derived_ptr = new derived ();
 
        if ((new_call_count != 2) || (errors != 0))