diff options
Diffstat (limited to 'gcc/testsuite')
-rw-r--r-- | gcc/testsuite/g++.dg/init/array10.C | 6 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/template/memclass1.C | 18 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/template/ptrmem6.C | 10 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/template/scope2.C | 34 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/20030711-1.c | 25 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/20030926-1.c | 14 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/ia64-sync-4.c | 21 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/noncompile/init-4.c | 3 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/torture/dg-torture.exp | 7 |
9 files changed, 0 insertions, 138 deletions
diff --git a/gcc/testsuite/g++.dg/init/array10.C b/gcc/testsuite/g++.dg/init/array10.C deleted file mode 100644 index 3b059aa0fbf..00000000000 --- a/gcc/testsuite/g++.dg/init/array10.C +++ /dev/null @@ -1,6 +0,0 @@ -// { dg-do compile } -// { dg-options "" } - -typedef int __attribute__((mode(V2SI))) vec; - -vec foo[] = { (vec) {1, 2} }; diff --git a/gcc/testsuite/g++.dg/template/memclass1.C b/gcc/testsuite/g++.dg/template/memclass1.C deleted file mode 100644 index c49ed724d6f..00000000000 --- a/gcc/testsuite/g++.dg/template/memclass1.C +++ /dev/null @@ -1,18 +0,0 @@ -// { dg-do compile } - -// Origin: Volker Reichelt <reichelt@igpm.rwth-aachen.de> - -// PR c++/10555: ICE for member class template when one of the -// template argument levels contains errors. - -template <typename> struct A -{ - template <typename> struct B; -}; - -template <typename T> struct C -{ - typedef typename A<T>::template B<U> X; // { dg-error "declared|invalid" } -}; - -C<void> c; diff --git a/gcc/testsuite/g++.dg/template/ptrmem6.C b/gcc/testsuite/g++.dg/template/ptrmem6.C deleted file mode 100644 index 0d7dec21981..00000000000 --- a/gcc/testsuite/g++.dg/template/ptrmem6.C +++ /dev/null @@ -1,10 +0,0 @@ -struct S {}; - -void g(int S::**); - -template <typename T> -void f (int T::* volatile *p) { - g(p); // { dg-error "" } -} - -template void f(int S::* volatile *); // { dg-error "instantiated" } diff --git a/gcc/testsuite/g++.dg/template/scope2.C b/gcc/testsuite/g++.dg/template/scope2.C deleted file mode 100644 index 79b520cbeab..00000000000 --- a/gcc/testsuite/g++.dg/template/scope2.C +++ /dev/null @@ -1,34 +0,0 @@ -// { dg-do compile } - -// Copyright (C) 2003 Free Software Foundation, Inc. -// Contributed by Nathan Sidwell 15 Aug 2003 <nathan@codesourcery.com> - -// checked instantiated bases in wrong scope. - -class Helper {}; - -template<class T> struct X { }; - -template<class T> class Base -{ - protected: - typedef Helper H; -}; - -template<class T > -struct Derived : Base<T> -{ - typedef Base<T> Parent; - typedef typename Parent::H H; - - class Nested : public X<H> {}; - - Nested m; - - void Foo (); -}; - -void Foo (Derived<char> &x) -{ - x.Foo (); -} diff --git a/gcc/testsuite/gcc.dg/20030711-1.c b/gcc/testsuite/gcc.dg/20030711-1.c deleted file mode 100644 index 25f515cbe50..00000000000 --- a/gcc/testsuite/gcc.dg/20030711-1.c +++ /dev/null @@ -1,25 +0,0 @@ -/* Test whether strncmp has not been "optimized" into memcmp - nor any code with memcmp semantics. */ -/* { dg-do run { target i?86-*-linux* x86_64-*-linux* ia64-*-linux* alpha*-*-linux* powerpc*-*-linux* s390*-*-linux* sparc*-*-linux* } } */ -/* { dg-options "-O2" } */ -#include <sys/mman.h> -#include <stdlib.h> - -void __attribute__((noinline)) test (const char *p) -{ - if (__builtin_strncmp (p, "abcdefghijklmnopq", 17) == 0) - abort (); -} - -int main (void) -{ - char *p = mmap (NULL, 131072, PROT_READ | PROT_WRITE, - MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); - if (p == MAP_FAILED) - return 0; - if (munmap (p + 65536, 65536) < 0) - return 0; - __builtin_memcpy (p + 65536 - 5, "abcd", 5); - test (p + 65536 - 5); - return 0; -} diff --git a/gcc/testsuite/gcc.dg/20030926-1.c b/gcc/testsuite/gcc.dg/20030926-1.c deleted file mode 100644 index 085cb9b4da1..00000000000 --- a/gcc/testsuite/gcc.dg/20030926-1.c +++ /dev/null @@ -1,14 +0,0 @@ -/* PR optimization/11741 */ -/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ -/* { dg-options "-O2 -minline-all-stringops -march=pentium4" } */ - -void -foo (char *p) -{ - for (;;) - { - memcpy (p, p + 1, strlen (p)); - p++; - } -} - diff --git a/gcc/testsuite/gcc.dg/ia64-sync-4.c b/gcc/testsuite/gcc.dg/ia64-sync-4.c deleted file mode 100644 index 98dfdac78ac..00000000000 --- a/gcc/testsuite/gcc.dg/ia64-sync-4.c +++ /dev/null @@ -1,21 +0,0 @@ -/* { dg-do compile { target ia64-*-* } } */ -/* { dg-options "-O2 -finline-functions" } */ - -/* Test inlining __sync_bool_compare_and_swap_di. */ - -#include <stdbool.h> -#include <ia64intrin.h> - -static bool -compare_and_swap(long *addr, long old, long new_val) -{ - return __sync_bool_compare_and_swap_di(addr, old, new_val); -} - -void -foo (long *address) -{ - long he_address = *address & ~1; - while (!compare_and_swap(address, he_address, he_address | 1)) - he_address = *address & ~1; -} diff --git a/gcc/testsuite/gcc.dg/noncompile/init-4.c b/gcc/testsuite/gcc.dg/noncompile/init-4.c deleted file mode 100644 index 906c115b8cc..00000000000 --- a/gcc/testsuite/gcc.dg/noncompile/init-4.c +++ /dev/null @@ -1,3 +0,0 @@ -struct a { char *b; } c[D] /* { dg-error "undeclared" } */ - = /* { dg-error "storage size" } */ - { { "" } } ; /* { dg-warning "braces around scalar initializer|near" } */ diff --git a/gcc/testsuite/gcc.dg/torture/dg-torture.exp b/gcc/testsuite/gcc.dg/torture/dg-torture.exp deleted file mode 100644 index b151c2e0772..00000000000 --- a/gcc/testsuite/gcc.dg/torture/dg-torture.exp +++ /dev/null @@ -1,7 +0,0 @@ -# This harness is for tests that should be run at all optimisation levels. - -load_lib gcc-dg.exp - -dg-init -gcc-dg-runtest [lsort [glob $srcdir/$subdir/*.c]] "" -dg-finish |