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
fc6d6d62
Commit
fc6d6d62
authored
Nov 18, 2003
by
Joseph Myers
Committed by
Joseph Myers
Nov 18, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* gcc.dg/nested-func-1.c: New test.
From-SVN: r73701
parent
0d77ab84
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
0 deletions
+39
-0
gcc/testsuite/ChangeLog
+4
-0
gcc/testsuite/gcc.dg/nested-func-1.c
+35
-0
No files found.
gcc/testsuite/ChangeLog
View file @
fc6d6d62
2003-11-18 Joseph S. Myers <jsm@polyomino.org.uk>
* gcc.dg/nested-func-1.c: New test.
2003-11-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2003-11-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* gcc.dg/cpp/assert4.c: New test.
* gcc.dg/cpp/assert4.c: New test.
...
...
gcc/testsuite/gcc.dg/nested-func-1.c
0 → 100644
View file @
fc6d6d62
/* Test for proper errors for break and continue in nested functions. */
/* Origin: Joseph Myers <jsm@polyomino.org.uk> */
/* { dg-do compile } */
/* { dg-options "" } */
void
foo
(
int
a
)
{
switch
(
a
)
{
void
bar1
(
void
)
{
break
;
}
/* { dg-error "break statement" "break switch 1" } */
}
switch
(
a
)
{
case
0
:
(
void
)
0
;
void
bar2
(
void
)
{
break
;
}
/* { dg-error "break statement" "break switch 2" } */
}
while
(
1
)
{
void
bar3
(
void
)
{
break
;
}
/* { dg-error "break statement" "break while" } */
}
do
{
void
bar4
(
void
)
{
break
;
}
/* { dg-error "break statement" "break do" } */
}
while
(
1
);
for
(;;)
{
void
bar5
(
void
)
{
break
;
}
/* { dg-error "break statement" "break for" } */
}
while
(
1
)
{
void
bar6
(
void
)
{
continue
;
}
/* { dg-error "continue statement" "continue while" } */
}
do
{
void
bar7
(
void
)
{
continue
;
}
/* { dg-error "continue statement" "continue do" } */
}
while
(
1
);
for
(;;)
{
void
bar8
(
void
)
{
continue
;
}
/* { dg-error "continue statement" "continue for" } */
}
}
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