Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
d5ac899c
Commit
d5ac899c
authored
Jun 18, 2013
by
Marek Polacek
Committed by
Marek Polacek
Jun 18, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix c90-fordecl-1.c test
From-SVN: r200166
parent
8951f345
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
gcc/testsuite/ChangeLog
+4
-0
gcc/testsuite/gcc.dg/c90-fordecl-1.c
+2
-2
No files found.
gcc/testsuite/ChangeLog
View file @
d5ac899c
2013-06-18 Marek Polacek <polacek@redhat.com>
* gcc.dg/c90-fordecl-1.c: Adjust expected message.
2013-06-17 Balaji V. Iyer <balaji.v.iyer@intel.com>
* c-c++-common/cilk-plus/AN/sec_reduce_ind_same_value.c: New test.
...
...
gcc/testsuite/gcc.dg/c90-fordecl-1.c
View file @
d5ac899c
...
...
@@ -9,6 +9,6 @@ foo (void)
int
j
=
0
;
for
(
int
i
=
1
;
i
<=
10
;
i
++
)
/* { dg-bogus "warning" "warning in place of error" } */
j
+=
i
;
/* { dg-error "'for' loop initial declarations are only allowed in C99 mode" "declaration in for loop" { target *-*-* } 10 } */
/* { dg-message "note: use option -std=c99
or -std=gnu99
to compile your code" "note" { target *-*-* } 10 }} */
/* { dg-error "'for' loop initial declarations are only allowed in C99
or C11
mode" "declaration in for loop" { target *-*-* } 10 } */
/* { dg-message "note: use option -std=c99
, -std=gnu99, -std=c11 or -std=gnu11
to compile your code" "note" { target *-*-* } 10 }} */
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment