From: Joseph Myers Date: Sun, 27 Jun 2004 18:55:15 +0000 (+0100) Subject: 20021123-1.c: Remove duplicate of 20021110.c. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b6ded5bdea275e95743d0b2baab42a393800c8db;p=gcc.git 20021123-1.c: Remove duplicate of 20021110.c. * gcc.c-torture/compile/20021123-1.c: Remove duplicate of 20021110.c. * gcc.c-torture/compile/20021123-4.c: Remove duplicate of 20021119-1.c. * gcc.dg/vmx/5-05.c, gcc.dg/vmx/5-06.c, gcc.dg/vmx/5-07.c, gcc.dg/vmx/5-08.c: Remove duplicates of 5-01.c, 5-02.c, 5-03.c, 5-04.c. * gcc.dg/builtins-42.c: Remove duplicate of builtins-41.c. * g++.dg/other/new1.C: Remove duplicate of g++.dg/init/new1.C. * g++.dg/init/elide3.C: Remove duplicate of elide2.C. * g++.old-deja/g++.law/enum8.C: Remove duplicate of g++.brendan/enum14.C. * g++.old-deja/g++.mike/ns8.C: Remove duplicate of ns6.C * g++.old-deja/g++.ns/alias5.C: Remove duplicate of alias1.C. * g++.old-deja/g++.other/virtual1.C: Remove duplicate of g++.mike/virt1.C. * g++.old-deja/g++.pt/memtemp27.C: Remove duplicate of memtemp24.C. From-SVN: r83739 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index ab98b2a9126..d559086c58c 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,24 @@ +2004-06-27 Joseph S. Myers + + * gcc.c-torture/compile/20021123-1.c: Remove duplicate of + 20021110.c. + * gcc.c-torture/compile/20021123-4.c: Remove duplicate of + 20021119-1.c. + * gcc.dg/vmx/5-05.c, gcc.dg/vmx/5-06.c, gcc.dg/vmx/5-07.c, + gcc.dg/vmx/5-08.c: Remove duplicates of 5-01.c, 5-02.c, 5-03.c, + 5-04.c. + * gcc.dg/builtins-42.c: Remove duplicate of builtins-41.c. + * g++.dg/other/new1.C: Remove duplicate of g++.dg/init/new1.C. + * g++.dg/init/elide3.C: Remove duplicate of elide2.C. + * g++.old-deja/g++.law/enum8.C: Remove duplicate of + g++.brendan/enum14.C. + * g++.old-deja/g++.mike/ns8.C: Remove duplicate of ns6.C + * g++.old-deja/g++.ns/alias5.C: Remove duplicate of alias1.C. + * g++.old-deja/g++.other/virtual1.C: Remove duplicate of + g++.mike/virt1.C. + * g++.old-deja/g++.pt/memtemp27.C: Remove duplicate of + memtemp24.C. + 2004-06-27 Roger Sayle * gcc.dg/20040527-1.c: New test case. diff --git a/gcc/testsuite/g++.dg/init/elide3.C b/gcc/testsuite/g++.dg/init/elide3.C deleted file mode 100644 index e6d3300b56b..00000000000 --- a/gcc/testsuite/g++.dg/init/elide3.C +++ /dev/null @@ -1,30 +0,0 @@ -// PR c++/8674 - -// Bug: Since B().a is an rvalue, we tried to treat it like a TARGET_EXPR -// and elide the copy. But that produces a bitwise copy, which causes us -// to abort in cp_expr_size. - -// Test that we actually run the A copy constructor when calling f(). - -// { dg-do run } - -int c; - -struct A -{ - A () { ++c; } - A (const A&) { ++c; } -}; - -struct B -{ - A a; -}; - -void f (A) { } - -int main () -{ - f (B().a); - return c < 2; -} diff --git a/gcc/testsuite/g++.dg/other/new1.C b/gcc/testsuite/g++.dg/other/new1.C deleted file mode 100644 index 5015d819f7f..00000000000 --- a/gcc/testsuite/g++.dg/other/new1.C +++ /dev/null @@ -1,19 +0,0 @@ -// Origin: asharji@uwaterloo.ca - -// { dg-do compile } - -typedef __SIZE_TYPE__ size_t; - -class bar { - int i; - public : - void * operator new ( size_t , void * storage ); -}; - -class foo { - int storage[ 5 ]; - public: - void mem ( ) { - bar *s = new ( ( void * ) & storage ) bar; - } -}; diff --git a/gcc/testsuite/g++.old-deja/g++.law/enum8.C b/gcc/testsuite/g++.old-deja/g++.law/enum8.C deleted file mode 100644 index e18284458eb..00000000000 --- a/gcc/testsuite/g++.old-deja/g++.law/enum8.C +++ /dev/null @@ -1,4 +0,0 @@ -// { dg-do assemble } -// { dg-options "-fshort-enums" } -// GROUPS passed enums - enum E { A = 0x80000000 }; diff --git a/gcc/testsuite/g++.old-deja/g++.mike/ns8.C b/gcc/testsuite/g++.old-deja/g++.mike/ns8.C deleted file mode 100644 index 275e7ba8535..00000000000 --- a/gcc/testsuite/g++.old-deja/g++.mike/ns8.C +++ /dev/null @@ -1,9 +0,0 @@ -// { dg-do assemble } - -namespace A { - int i = 1; -} - -namespace A { - int j = i; -} diff --git a/gcc/testsuite/g++.old-deja/g++.ns/alias5.C b/gcc/testsuite/g++.old-deja/g++.ns/alias5.C deleted file mode 100644 index e46d74dff45..00000000000 --- a/gcc/testsuite/g++.old-deja/g++.ns/alias5.C +++ /dev/null @@ -1,19 +0,0 @@ -// { dg-do run } -namespace foo{ - int eine_funktion(int) - { - return 0; - } -} - -namespace foo{ - void eine_funktion(int,int) - {} -} - -namespace bar = foo; - -int main() -{ - return bar::eine_funktion(3); -} diff --git a/gcc/testsuite/g++.old-deja/g++.other/virtual1.C b/gcc/testsuite/g++.old-deja/g++.other/virtual1.C deleted file mode 100644 index f8ee4edb037..00000000000 --- a/gcc/testsuite/g++.old-deja/g++.other/virtual1.C +++ /dev/null @@ -1,13 +0,0 @@ -// { dg-do assemble } - -struct S0 { virtual void f1 () { } }; - -struct S1 : virtual public S0 { virtual void f1 () { } }; - -struct S2 : public S1 { virtual void f1 () { } }; - -struct S3 : virtual public S0 { virtual void f1 () { } }; - -struct S4 : public S3 { }; - -void creator () { new S4; } diff --git a/gcc/testsuite/g++.old-deja/g++.pt/memtemp27.C b/gcc/testsuite/g++.old-deja/g++.pt/memtemp27.C deleted file mode 100644 index 4e81d015d06..00000000000 --- a/gcc/testsuite/g++.old-deja/g++.pt/memtemp27.C +++ /dev/null @@ -1,25 +0,0 @@ -// { dg-do link } -// GROUPS passed templates membertemplates -extern "C" int printf(const char*, ...); - -template -struct S -{ - S() - { printf ("In S::S()\n"); f(3); } - - S(char) - { printf ("In S::S(char)\n"); f(*this); } - - template - void f(U u) - { printf ("In S::f(U)\nsizeof(U) == %d\n", sizeof(u)); } - - int c[16]; -}; - -int main() -{ - S s; - S s2('a'); -} diff --git a/gcc/testsuite/gcc.c-torture/compile/20021123-1.c b/gcc/testsuite/gcc.c-torture/compile/20021123-1.c deleted file mode 100644 index dd2aa7e09dd..00000000000 --- a/gcc/testsuite/gcc.c-torture/compile/20021123-1.c +++ /dev/null @@ -1,10 +0,0 @@ -/* PR c/8439 */ -/* Verify that GCC properly handles null increments. */ - -struct empty { -}; - -void foo(struct empty *p) -{ - p++; -} diff --git a/gcc/testsuite/gcc.c-torture/compile/20021123-4.c b/gcc/testsuite/gcc.c-torture/compile/20021123-4.c deleted file mode 100644 index d4306b89b99..00000000000 --- a/gcc/testsuite/gcc.c-torture/compile/20021123-4.c +++ /dev/null @@ -1,11 +0,0 @@ -/* PR c/8588 */ -/* Contributed by Volker Reichelt. */ - -/* Verify that GCC converts integer constants - in shift operations. */ - -void foo() -{ - unsigned int i, j; - j = (i >> 0xf0); -} diff --git a/gcc/testsuite/gcc.dg/builtins-42.c b/gcc/testsuite/gcc.dg/builtins-42.c deleted file mode 100644 index 5b96551fb11..00000000000 --- a/gcc/testsuite/gcc.dg/builtins-42.c +++ /dev/null @@ -1,57 +0,0 @@ -/* Copyright (C) 2004 Free Software Foundation. - - Check that constant folding of copysign, copysignf and copysignl math - functions doesn't break anything and produces the expected results. - - Written by Roger Sayle, 6th June 2004. */ - -/* { dg-do link } */ -/* { dg-options "-O2" } */ - -extern void link_error(void); - -extern double copysign(double, double); -extern float copysignf(float, float); -extern long double copysignl(long double, long double); - -int main() -{ - if (copysign (2.0, 1.0) != 2.0) - link_error (); - if (copysign (2.0, -1.0) != -2.0) - link_error (); - if (copysign (-2.0, 1.0) != 2.0) - link_error (); - if (copysign (-2.0, -1.0) != -2.0) - link_error (); - - if (copysign (2.0, 1.0) != 2.0) - link_error (); - if (copysign (2.0, -1.0) != -2.0) - link_error (); - if (copysign (-2.0, 1.0) != 2.0) - link_error (); - if (copysign (-2.0, -1.0) != -2.0) - link_error (); - - if (copysignf (2.0f, 1.0f) != 2.0f) - link_error (); - if (copysignf (2.0f, -1.0f) != -2.0f) - link_error (); - if (copysignf (-2.0f, 1.0f) != 2.0f) - link_error (); - if (copysignf (-2.0f, -1.0f) != -2.0f) - link_error (); - - if (copysignl (2.0l, 1.0l) != 2.0l) - link_error (); - if (copysignl (2.0l, -1.0l) != -2.0l) - link_error (); - if (copysignl (-2.0l, 1.0l) != 2.0l) - link_error (); - if (copysignl (-2.0l, -1.0l) != -2.0l) - link_error (); - - return 0; -} - diff --git a/gcc/testsuite/gcc.dg/vmx/5-05.c b/gcc/testsuite/gcc.dg/vmx/5-05.c deleted file mode 100644 index c3cb6e990dc..00000000000 --- a/gcc/testsuite/gcc.dg/vmx/5-05.c +++ /dev/null @@ -1,4 +0,0 @@ -/* { dg-do compile } */ -#include -vector unsigned int a = {1,1,1,1}; -vector unsigned int b = {1,2,3,4}; diff --git a/gcc/testsuite/gcc.dg/vmx/5-06.c b/gcc/testsuite/gcc.dg/vmx/5-06.c deleted file mode 100644 index 0bb4eb0084f..00000000000 --- a/gcc/testsuite/gcc.dg/vmx/5-06.c +++ /dev/null @@ -1,4 +0,0 @@ -/* { dg-do compile } */ -#include -vector float a = {1,1,1,1}; -vector float b = {1,2.0,3,4U}; diff --git a/gcc/testsuite/gcc.dg/vmx/5-07.c b/gcc/testsuite/gcc.dg/vmx/5-07.c deleted file mode 100644 index 3d048e87b01..00000000000 --- a/gcc/testsuite/gcc.dg/vmx/5-07.c +++ /dev/null @@ -1,28 +0,0 @@ -/* { dg-do compile } */ -#include -vector unsigned char u8 = {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}; -vector signed char s8 = {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}; -vector bool char b8 = {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}; -vector unsigned short u16 = {1,1,1,1,1,1,1,1}; -vector signed short s16 = {1,1,1,1,1,1,1,1}; -vector bool short b16 = {1,1,1,1,1,1,1,1}; -vector unsigned int u32 = {1,1,1,1}; -vector signed int s32 = {1,1,1,1}; -vector bool int b32 = {1,1,1,1}; -vector float f32 = {1,1,1,1}; -vector pixel p16 = {1,1,1,1,1,1,1,1}; - -vector unsigned char u8_ - = {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16}; -vector signed char s8_ - = {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16}; -vector bool char b8_ - = {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16}; -vector unsigned short u16_ = {1,2,3,4,5,6,7,8}; -vector signed short s16_ = {1,2,3,4,5,6,7,8}; -vector bool short b16_ = {1,2,3,4,5,6,7,8}; -vector unsigned int u32_ = {1,2,3,4}; -vector signed int s32_ = {1,2,3,4}; -vector bool int b32_ = {1,2,3,4}; -vector float f32_ = {1,2,3,4}; -vector pixel p16_ = {1,2,3,4,5,6,7,8}; diff --git a/gcc/testsuite/gcc.dg/vmx/5-08.c b/gcc/testsuite/gcc.dg/vmx/5-08.c deleted file mode 100644 index c5135e88864..00000000000 --- a/gcc/testsuite/gcc.dg/vmx/5-08.c +++ /dev/null @@ -1,10 +0,0 @@ -/* { dg-do compile } */ -#include -vector unsigned int a; -vector unsigned int b; -void -f(void) -{ - a = ((vector unsigned int){1,1,1,1}); - b = ((vector unsigned int){1,2,3,4}); -}