aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.misc-tests
diff options
context:
space:
mode:
authorJanis Johnson <janis187@us.ibm.com>2005-02-01 17:37:25 +0000
committerJanis Johnson <janis@gcc.gnu.org>2005-02-01 17:37:25 +0000
commit91442c2081b37f63adb5d0c3f626949abcce406a (patch)
tree9082927fe5de46b203efe64a06be20e624e63746 /gcc/testsuite/gcc.misc-tests
parent0e7eed46026720d0a1a0696128499293913566bf (diff)
downloadgcc-91442c2081b37f63adb5d0c3f626949abcce406a.zip
gcc-91442c2081b37f63adb5d0c3f626949abcce406a.tar.gz
gcc-91442c2081b37f63adb5d0c3f626949abcce406a.tar.bz2
README: Describe tests in source directory.
* gcc.test-framework/README: Describe tests in source directory. * gcc.test-framework/test-framework.awk: Handle dg- tests. * gcc.test-framework/test-framework.exp: Handle dg- tests. * gcc.test-framework/dg-bogus-exp-P.c: New test. * gcc.test-framework/dg-bogus-exp-XF.c: New test. * gcc.test-framework/dg-do-assemble-exp-P.c: New test. * gcc.test-framework/dg-do-compile-exp-P.c: New test. * gcc.test-framework/dg-do-link-exp-P.c: New test. * gcc.test-framework/dg-do-run-exp-P.c: New test. * gcc.test-framework/dg-dot-run-exp-P.c: New test. * gcc.test-framework/dg-dot-run-exp-U.c: New test. * gcc.test-framework/dg-dox-run-exp-XF.c: New test. * gcc.test-framework/dg-error-exp-P.c: New test. * gcc.test-framework/dg-error-exp-XP.c: New test. * gcc.test-framework/dg-excess-errors-exp-XF.c: New test. * gcc.test-framework/dg-excess-errors-exp-XP.c: New test. * gcc.test-framework/dg-output-exp-P.c: New test. * gcc.test-framework/dg-output-exp-XF.c: New test. * gcc.test-framework/dg-warning-exp-P.c: New test. * gcc.misc-tests/dg-1.c: Remove. * gcc.misc-tests/dg-2.c: Remove. * gcc.misc-tests/dg-3.c: Remove. * gcc.misc-tests/dg-4.c: Remove. * gcc.misc-tests/dg-5.c: Remove. * gcc.misc-tests/dg-6.c: Remove. * gcc.misc-tests/dg-7.c: Remove. * gcc.misc-tests/dg-8.c: Remove. * gcc.misc-tests/dg-9.c: Remove. * gcc.misc-tests/dg-10.c: Remove. * gcc.misc-tests/dg-11.c: Remove. * gcc.misc-tests/dg-12.c: Remove. * gcc.misc-tests/dg-test.exp: Remove. From-SVN: r94550
Diffstat (limited to 'gcc/testsuite/gcc.misc-tests')
-rw-r--r--gcc/testsuite/gcc.misc-tests/dg-1.c14
-rw-r--r--gcc/testsuite/gcc.misc-tests/dg-10.c12
-rw-r--r--gcc/testsuite/gcc.misc-tests/dg-11.c9
-rw-r--r--gcc/testsuite/gcc.misc-tests/dg-12.c9
-rw-r--r--gcc/testsuite/gcc.misc-tests/dg-2.c11
-rw-r--r--gcc/testsuite/gcc.misc-tests/dg-3.c11
-rw-r--r--gcc/testsuite/gcc.misc-tests/dg-4.c5
-rw-r--r--gcc/testsuite/gcc.misc-tests/dg-5.c9
-rw-r--r--gcc/testsuite/gcc.misc-tests/dg-6.c9
-rw-r--r--gcc/testsuite/gcc.misc-tests/dg-7.c6
-rw-r--r--gcc/testsuite/gcc.misc-tests/dg-8.c9
-rw-r--r--gcc/testsuite/gcc.misc-tests/dg-9.c15
-rw-r--r--gcc/testsuite/gcc.misc-tests/dg-test.exp38
13 files changed, 0 insertions, 157 deletions
diff --git a/gcc/testsuite/gcc.misc-tests/dg-1.c b/gcc/testsuite/gcc.misc-tests/dg-1.c
deleted file mode 100644
index 319f8a2..0000000
--- a/gcc/testsuite/gcc.misc-tests/dg-1.c
+++ /dev/null
@@ -1,14 +0,0 @@
-/* Test the tester. */
-/* { dg-prms-id 42 } */
-/* { dg-do compile } */
-
-main () { return 0; }
-
-/* { dg-final { if ![file exists dg-1.s] { fail "dg-1.c (compile)"; return; } } } */
-
-/* { dg-final { set tmp [grep dg-1.s main line] } } */
-/* { dg-final { if ![string match "" $tmp] \{ } } */
-/* { dg-final { pass "dg-1.c (main function present)" } } */
-/* { dg-final { \} else \{ } } */
-/* { dg-final { fail "dg-1.c (main function not present)" } } */
-/* { dg-final { \} } } */
diff --git a/gcc/testsuite/gcc.misc-tests/dg-10.c b/gcc/testsuite/gcc.misc-tests/dg-10.c
deleted file mode 100644
index 6d7b344..0000000
--- a/gcc/testsuite/gcc.misc-tests/dg-10.c
+++ /dev/null
@@ -1,12 +0,0 @@
-/* Test the tester. */
-/* { dg-prms-id 42 } */
-/* { dg-options "-Wall" } */
-
-/* FIXME: we want to test dg-lose here. Anyone know of a good way to
- crash the compiler? */
-
-int
-main (int argc, char *argv[])
-{
- return 0;
-}
diff --git a/gcc/testsuite/gcc.misc-tests/dg-11.c b/gcc/testsuite/gcc.misc-tests/dg-11.c
deleted file mode 100644
index bfbba4d..0000000
--- a/gcc/testsuite/gcc.misc-tests/dg-11.c
+++ /dev/null
@@ -1,9 +0,0 @@
-/* Test the tester. */
-/* { dg-prms-id 42 } */
-/* { dg-do run { target sparc-sun-solaris2* } } */
-/* The \n is left out of the pattern because tcl's exec will remove it. */
-/* { dg-output {Hello world[.]} } */
-
-#include <stdio.h>
-
-main () { printf ("Hello world.\n"); return 0; }
diff --git a/gcc/testsuite/gcc.misc-tests/dg-12.c b/gcc/testsuite/gcc.misc-tests/dg-12.c
deleted file mode 100644
index c6adbf5..0000000
--- a/gcc/testsuite/gcc.misc-tests/dg-12.c
+++ /dev/null
@@ -1,9 +0,0 @@
-/* Test the tester. */
-/* { dg-prms-id 42 } */
-/* { dg-do run { target foo-bar-eh } } */
-/* The \n is left out of the pattern because tcl's exec will remove it. */
-/* { dg-output {Hello world[.]} } */
-
-#include <stdio.h>
-
-main () { printf ("Hello world.\n"); return 0; }
diff --git a/gcc/testsuite/gcc.misc-tests/dg-2.c b/gcc/testsuite/gcc.misc-tests/dg-2.c
deleted file mode 100644
index bb40387..0000000
--- a/gcc/testsuite/gcc.misc-tests/dg-2.c
+++ /dev/null
@@ -1,11 +0,0 @@
-/* Test the tester. */
-/* { dg-prms-id 42 } */
-/* { dg-do assemble } */
-
-main () { return 0; }
-
-/* { dg-final { if [file exists dg-2.o] \{ } } */
-/* { dg-final { pass "dg-2.c (assemble: produce .o test)" } } */
-/* { dg-final { \} else \{ } } */
-/* { dg-final { fail "dg-2.c (assemble: produce .o test)" } } */
-/* { dg-final { \} } } */
diff --git a/gcc/testsuite/gcc.misc-tests/dg-3.c b/gcc/testsuite/gcc.misc-tests/dg-3.c
deleted file mode 100644
index 017ab27..0000000
--- a/gcc/testsuite/gcc.misc-tests/dg-3.c
+++ /dev/null
@@ -1,11 +0,0 @@
-/* Test the tester. */
-/* { dg-prms-id 42 } */
-/* { dg-do link } */
-
-main () { return 0; }
-
-/* { dg-final { if [file exists a.out] \{ } } */
-/* { dg-final { pass "dg-2.c (link: produce a.out test)" } } */
-/* { dg-final { \} else \{ } } */
-/* { dg-final { fail "dg-2.c (link: produce a.out test)" } } */
-/* { dg-final { \} } } */
diff --git a/gcc/testsuite/gcc.misc-tests/dg-4.c b/gcc/testsuite/gcc.misc-tests/dg-4.c
deleted file mode 100644
index 806bdfb..0000000
--- a/gcc/testsuite/gcc.misc-tests/dg-4.c
+++ /dev/null
@@ -1,5 +0,0 @@
-/* Test the tester. */
-/* { dg-prms-id 42 } */
-/* { dg-do run } */
-
-main () { return 0; }
diff --git a/gcc/testsuite/gcc.misc-tests/dg-5.c b/gcc/testsuite/gcc.misc-tests/dg-5.c
deleted file mode 100644
index 178fcb8..0000000
--- a/gcc/testsuite/gcc.misc-tests/dg-5.c
+++ /dev/null
@@ -1,9 +0,0 @@
-/* Test the tester. */
-/* { dg-prms-id 42 } */
-/* { dg-do run } */
-/* The \n is left out of the pattern because tcl's exec will remove it. */
-/* { dg-output {Hello world[.]} } */
-
-#include <stdio.h>
-
-main () { printf ("Hello world.\n"); return 0; }
diff --git a/gcc/testsuite/gcc.misc-tests/dg-6.c b/gcc/testsuite/gcc.misc-tests/dg-6.c
deleted file mode 100644
index 8323792..0000000
--- a/gcc/testsuite/gcc.misc-tests/dg-6.c
+++ /dev/null
@@ -1,9 +0,0 @@
-/* Test the tester. */
-/* { dg-prms-id 42 } */
-/* { dg-do run { target *-*-* } } */
-/* The \n is left out of the pattern because tcl's exec will remove it. */
-/* { dg-output {Hello world[.]} { xfail *-*-* } } */
-
-#include <stdio.h>
-
-main () { printf ("Hello world (oops).\n"); return 0; }
diff --git a/gcc/testsuite/gcc.misc-tests/dg-7.c b/gcc/testsuite/gcc.misc-tests/dg-7.c
deleted file mode 100644
index adde4cb..0000000
--- a/gcc/testsuite/gcc.misc-tests/dg-7.c
+++ /dev/null
@@ -1,6 +0,0 @@
-/* Test the tester. */
-/* { dg-prms-id 42 } */
-/* { dg-do run { xfail *-*-* } } */
-extern void abort (void);
-
-main () { abort (); return 0; }
diff --git a/gcc/testsuite/gcc.misc-tests/dg-8.c b/gcc/testsuite/gcc.misc-tests/dg-8.c
deleted file mode 100644
index 63a5b0e..0000000
--- a/gcc/testsuite/gcc.misc-tests/dg-8.c
+++ /dev/null
@@ -1,9 +0,0 @@
-/* Test the tester. */
-/* { dg-prms-id 42 } */
-/* { dg-options "-Wall" } */
-/* { dg-do run } */
-/* { dg-excess-errors "excess errors" } */
-
-/* should get warning about defaulting return type - excess error */
-
-main () { return 0; }
diff --git a/gcc/testsuite/gcc.misc-tests/dg-9.c b/gcc/testsuite/gcc.misc-tests/dg-9.c
deleted file mode 100644
index b228fff..0000000
--- a/gcc/testsuite/gcc.misc-tests/dg-9.c
+++ /dev/null
@@ -1,15 +0,0 @@
-/* Test the tester. */
-/* { dg-prms-id 42 } */
-/* { dg-options "-Wall" } */
-
-f ()
-{ /* { dg-warning "return type" "warning test" } */
-} /* { dg-warning "control reaches end" "warning test" } */
-
-main (int argc, char *argv[])
-{ /* { dg-warning "return type" "warning test" } */
- +; /* { dg-error "parse" "error test" } */
- /* { dg-bogus "foobar" "bogus fail test" } */
-
- return a; /* { dg-bogus "undeclared|identifier|appears" "bogus pass test" { xfail *-*-* } } */
-} /* { dg-warning "control reaches end" "warning test" } */
diff --git a/gcc/testsuite/gcc.misc-tests/dg-test.exp b/gcc/testsuite/gcc.misc-tests/dg-test.exp
deleted file mode 100644
index 820e28d..0000000
--- a/gcc/testsuite/gcc.misc-tests/dg-test.exp
+++ /dev/null
@@ -1,38 +0,0 @@
-# Copyright (C) 1997 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-# Test the dg.exp driver.
-# This is a testsuite tester tester. As such we *want* to test things like
-# expected failure handling. But expected failures must continually be
-# monitored and so in the normal case we create unnecessary work. So only
-# run these tests if DG_TEST is defined to "yes".
-
-global DG_TEST
-if { ![info exists DG_TEST] || "$DG_TEST" != "yes" } {
- return
-}
-
-# Load support procs.
-load_lib gcc-dg.exp
-
-# Initialize harness.
-dg-init
-
-# Main loop.
-dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/dg-*.c]] "" ""
-
-# All done.
-dg-finish