Bug 29380

Summary: FAIL: gcc.dg/pr29330.c (test for excess errors)
Product: gcc Reporter: John David Anglin <danglin>
Component: cAssignee: Not yet assigned to anyone <unassigned>
Status: RESOLVED FIXED    
Severity: normal CC: gcc-bugs, jakub, pinskia
Priority: P3    
Version: 4.2.0   
Target Milestone: ---   
Host: hppa2.0w-hp-hpux11.11 Target: hppa2.0w-hp-hpux11.11
Build: hppa2.0w-hp-hpux11.11 Known to work:
Known to fail: Last reconfirmed:

Description John David Anglin 2006-10-07 16:00:22 UTC
Executing on host: /test/gnu/gcc/objdir/gcc/xgcc -B/test/gnu/gcc/objdir/gcc/ /te
st/gnu/gcc/gcc/gcc/testsuite/gcc.dg/pr29330.c   -O -ftree-loop-linear -fno-show-
column -S  -o pr29330.s    (timeout = 300)
/test/gnu/gcc/gcc/gcc/testsuite/gcc.dg/pr29330.c: In function 'f':
/test/gnu/gcc/gcc/gcc/testsuite/gcc.dg/pr29330.c:10: error: 'for' loop initial d
eclaration used outside C99 mode
/test/gnu/gcc/gcc/gcc/testsuite/gcc.dg/pr29330.c:11: error: 'for' loop initial d
eclaration used outside C99 mode
/test/gnu/gcc/gcc/gcc/testsuite/gcc.dg/pr29330.c:12: error: 'for' loop initial d
eclaration used outside C99 mode
/test/gnu/gcc/gcc/gcc/testsuite/gcc.dg/pr29330.c:13: error: 'for' loop initial d
eclaration used outside C99 mode
compiler exited with status 1
output is:
/test/gnu/gcc/gcc/gcc/testsuite/gcc.dg/pr29330.c: In function 'f':
/test/gnu/gcc/gcc/gcc/testsuite/gcc.dg/pr29330.c:10: error: 'for' loop initial d
eclaration used outside C99 mode
/test/gnu/gcc/gcc/gcc/testsuite/gcc.dg/pr29330.c:11: error: 'for' loop initial d
eclaration used outside C99 mode
/test/gnu/gcc/gcc/gcc/testsuite/gcc.dg/pr29330.c:12: error: 'for' loop initial d
eclaration used outside C99 mode
/test/gnu/gcc/gcc/gcc/testsuite/gcc.dg/pr29330.c:13: error: 'for' loop initial d
eclaration used outside C99 mode

FAIL: gcc.dg/pr29330.c (test for excess errors)
Excess errors:
/test/gnu/gcc/gcc/gcc/testsuite/gcc.dg/pr29330.c:10: error: 'for' loop initial d
eclaration used outside C99 mode
/test/gnu/gcc/gcc/gcc/testsuite/gcc.dg/pr29330.c:11: error: 'for' loop initial d
eclaration used outside C99 mode
/test/gnu/gcc/gcc/gcc/testsuite/gcc.dg/pr29330.c:12: error: 'for' loop initial d
eclaration used outside C99 mode
/test/gnu/gcc/gcc/gcc/testsuite/gcc.dg/pr29330.c:13: error: 'for' loop initial d
eclaration used outside C99 mode
Comment 1 Jakub Jelinek 2006-10-07 16:50:32 UTC
Subject: Bug 29380

Author: jakub
Date: Sat Oct  7 16:50:23 2006
New Revision: 117539

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=117539
Log:
	PR c/29380
	* gcc.dg/pr29330.c: Add -std=gnu99 to dg-options.

Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.dg/pr29330.c

Comment 2 Jakub Jelinek 2006-10-07 17:02:38 UTC
Oops, sorry, not sure how I managed to miss this in the test results.
Fixed.