aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@gcc.gnu.org>2002-09-17 08:36:04 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2002-09-17 08:36:04 +0000
commit6d9f7a686659d0e0b69d8394743ec27a87e0c4d7 (patch)
tree2980fcdc461f3b0ae32f3ddbbab8992de98da653 /gcc
parent63fcfe8e64d61e9dbc7fdebcdf142632b80d2250 (diff)
downloadgcc-6d9f7a686659d0e0b69d8394743ec27a87e0c4d7.zip
gcc-6d9f7a686659d0e0b69d8394743ec27a87e0c4d7.tar.gz
gcc-6d9f7a686659d0e0b69d8394743ec27a87e0c4d7.tar.bz2
Add expected error
From-SVN: r57242
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/g++.dg/other/do1.C3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/testsuite/g++.dg/other/do1.C b/gcc/testsuite/g++.dg/other/do1.C
index 79e55c0..5ff6c56 100644
--- a/gcc/testsuite/g++.dg/other/do1.C
+++ b/gcc/testsuite/g++.dg/other/do1.C
@@ -8,5 +8,6 @@
void init ()
{
do { } while (0)
- obj = 0;
+ obj = 0; // { dg-error "parse error" "" }
+
}