diff options
author | Zack Weinberg <zack@codesourcery.com> | 2001-10-25 17:38:14 +0000 |
---|---|---|
committer | Zack Weinberg <zack@gcc.gnu.org> | 2001-10-25 17:38:14 +0000 |
commit | 5037fa8112b6c0c7fc4c3a33a21ddc06104c9b7f (patch) | |
tree | b7b6bb637ed08f8680755b6190d03d752063230f /gcc | |
parent | e16ffa0d616f9e073bca1c2ad0b2521247178194 (diff) | |
download | gcc-5037fa8112b6c0c7fc4c3a33a21ddc06104c9b7f.zip gcc-5037fa8112b6c0c7fc4c3a33a21ddc06104c9b7f.tar.gz gcc-5037fa8112b6c0c7fc4c3a33a21ddc06104c9b7f.tar.bz2 |
msgs.exp: Delete.
* gcc.misc-tests/msgs.exp: Delete.
* gcc.misc-tests/m-un-1.c: Move to gcc.dg.
* gcc.misc-tests/m-un-2.c: Move to gcc.dg. Update expected
error set to match recent changes.
From-SVN: r46491
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/m-un-1.c (renamed from gcc/testsuite/gcc.misc-tests/m-un-1.c) | 0 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/m-un-2.c (renamed from gcc/testsuite/gcc.misc-tests/m-un-2.c) | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.misc-tests/msgs.exp | 30 |
4 files changed, 10 insertions, 32 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index a4701cf..a11905e 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2001-10-25 Zack Weinberg <zack@codesourcery.com> + + * gcc.misc-tests/msgs.exp: Delete. + * gcc.misc-tests/m-un-1.c: Move to gcc.dg. + * gcc.misc-tests/m-un-2.c: Move to gcc.dg. Update expected + error set to match recent changes. + 2001-10-24 Zack Weinberg <zack@codesourcery.com> * gcc.dg/20011021-1.c: New test. diff --git a/gcc/testsuite/gcc.misc-tests/m-un-1.c b/gcc/testsuite/gcc.dg/m-un-1.c index ad84d44..ad84d44 100644 --- a/gcc/testsuite/gcc.misc-tests/m-un-1.c +++ b/gcc/testsuite/gcc.dg/m-un-1.c diff --git a/gcc/testsuite/gcc.misc-tests/m-un-2.c b/gcc/testsuite/gcc.dg/m-un-2.c index 06ff526..e31646b 100644 --- a/gcc/testsuite/gcc.misc-tests/m-un-2.c +++ b/gcc/testsuite/gcc.dg/m-un-2.c @@ -18,11 +18,12 @@ struct vtable mtable = { }; /* { dg-warning "missing initializer" "warning regression" { target *-*-* } {18} } */ /* { dg-warning "initialization for `mtable._realloc'" "warning regression" { target *-*-* } {18} } */ +/* With designated initializers, we assume you meant to leave out the + initialization of any blank fields. */ struct vtable mtable2 = { ._malloc = malloc, ._realloc = realloc -}; /* { dg-warning "missing initializer" "warning regression" { target *-*-* } {24} } */ - /* { dg-warning "initialization for `mtable2._free'" "warning regression" { target *-*-* } {24} } */ +}; struct vtable mtable3 = { ._free = free, diff --git a/gcc/testsuite/gcc.misc-tests/msgs.exp b/gcc/testsuite/gcc.misc-tests/msgs.exp deleted file mode 100644 index 219facd..0000000 --- a/gcc/testsuite/gcc.misc-tests/msgs.exp +++ /dev/null @@ -1,30 +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 gcc warning and error messages. -# Our testcases are named m-*.c ("m" and not "msg" to avoid DOS problems). - -# Load support procs. -load_lib gcc-dg.exp - -# Initialize harness. -dg-init - -# Main loop. -dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/m-*.c]] "" "" - -# All done. -dg-finish |