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
4ada8cdc
Commit
4ada8cdc
authored
Jun 29, 2006
by
Mike Stump
Committed by
Mike Stump
Jun 29, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* gcc.dg/vla-8.c: Add additional testcases.
From-SVN: r115074
parent
a0895ebf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
0 deletions
+28
-0
gcc/testsuite/ChangeLog
+4
-0
gcc/testsuite/gcc.dg/vla-8.c
+24
-0
No files found.
gcc/testsuite/ChangeLog
View file @
4ada8cdc
2006
-
06
-
29
Mike
Stump
<
mrs
@apple
.
com
>
*
gcc
.
dg
/
vla
-
8
.
c
:
Add
additional
testcases
.
2006
-
06
-
26
Steve
Ellcey
<
sje
@cup
.
hp
.
com
>
PR
c
++/
28114
gcc/testsuite/gcc.dg/vla-8.c
View file @
4ada8cdc
...
...
@@ -4,3 +4,27 @@
int
a
;
struct
s
{
void
(
*
f
)(
int
(
*
)[
a
]);
};
static
int
i
;
static
int
new_i
()
{
i
++
;
return
i
;
}
static
int
bar1
(
int
a
[
new_i
()][
new_i
()]);
void
foo
(
int
n
)
{
extern
void
bar
(
int
i
[
n
][
n
]);
/* Since this isn't a VM type ensure we can have linkage. */
extern
int
bar1
(
int
a
[
new_i
()][
new_i
()]);
/* Since this isn't a VM type ensure we can have linkage. */
}
void
foo1
(
int
n
)
{
goto
A
;
void
bar
(
int
i
[
n
][
n
]);
/* Not a VM type, as VM arguments don't matter. */
int
bar1
(
int
a
[
new_i
()][
new_i
()]);
/* Not a VM type, as VM arguments don't matter. */
A:
;
}
void
foo2
(
int
n
)
{
goto
A
;
/* { dg-error "jump into scope of identifier with variably modified type" } */
int
(
*
(
*
bar2
)(
void
))[
n
];
A:
;
}
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