diff options
Diffstat (limited to 'gcc/testsuite')
-rw-r--r-- | gcc/testsuite/g++.dg/init/ref8.C | 10 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/20030711-1.c | 25 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/Wunreachable-6.c | 18 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/Wunreachable-7.c | 18 | ||||
-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 |
7 files changed, 0 insertions, 102 deletions
diff --git a/gcc/testsuite/g++.dg/init/ref8.C b/gcc/testsuite/g++.dg/init/ref8.C deleted file mode 100644 index 406cc10401d..00000000000 --- a/gcc/testsuite/g++.dg/init/ref8.C +++ /dev/null @@ -1,10 +0,0 @@ -struct A { - A operator=(const A&); -}; - -A operator*(A, A); - -A& operator+=(A& a, const A& b) -{ - return a = a * b; // { dg-error "non-const reference" } -} 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/Wunreachable-6.c b/gcc/testsuite/gcc.dg/Wunreachable-6.c deleted file mode 100644 index 77b6228fc86..00000000000 --- a/gcc/testsuite/gcc.dg/Wunreachable-6.c +++ /dev/null @@ -1,18 +0,0 @@ -/* PR c/11370 */ -/* { dg-do compile } */ -/* { dg-options "-Wunreachable-code" } */ - -int main(int argc, char *argv[]) -{ - if (argc != 1) - exit(1); - - { - int ix; /* { dg-bogus "will never be executed" } */ - ix = printf("hello\n"); - printf("%d\n", ix); - } - - return 0; -} - diff --git a/gcc/testsuite/gcc.dg/Wunreachable-7.c b/gcc/testsuite/gcc.dg/Wunreachable-7.c deleted file mode 100644 index a19c94a1760..00000000000 --- a/gcc/testsuite/gcc.dg/Wunreachable-7.c +++ /dev/null @@ -1,18 +0,0 @@ -/* PR c/11370 */ -/* { dg-do compile } */ -/* { dg-options "-O2 -Wunreachable-code" } */ - -int main(int argc, char *argv[]) -{ - if (argc != 1) - exit(1); - - { - int ix; /* { dg-bogus "will never be executed" } */ - ix = printf("hello\n"); - printf("%d\n", ix); - } - - return 0; -} - 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 |