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
7f311f63
Commit
7f311f63
authored
Feb 16, 2002
by
Neil Booth
Committed by
Neil Booth
Feb 16, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* gcc.dg/decl-1.c: Update, new test.
From-SVN: r49804
parent
8d6e459d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
3 deletions
+19
-3
gcc/testsuite/ChangeLog
+4
-0
gcc/testsuite/gcc.dg/decl-1.c
+15
-3
No files found.
gcc/testsuite/ChangeLog
View file @
7f311f63
2002-02-16 Neil Booth <neil@daikokuya.demon.co.uk>
* gcc.dg/decl-1.c: Update, new test.
2002-02-15 Nathan Sidwell <nathan@codesourcery.com>
* g++.dg/abi/bitfield1.C: New test.
...
...
gcc/testsuite/gcc.dg/decl-1.c
View file @
7f311f63
...
...
@@ -2,16 +2,28 @@
Source: Neil Booth, 12 Feb 2002.
In the declaration of proc, x must be parsed as a typedef name
(6.7.5.3 p11). */
In the declaration of proc, x must be parsed as a typedef name (C99
6.7.5.3 p11. Also see C89 DR #009, which was erroneously ommitted
from C99, and resubmitted as DR #249: if in a parameter
declaration, an identifier can be read as a typedef name or a
paramter name, it is read as a typedef name). */
/* { dg-do compile } */
typedef
int
x
;
typedef
int
y
;
int
proc
(
int
(
x
));
/* x is a typedef, param to proc is a function. */
int
proc2
(
int
x
);
/* x is an identifier, param is an int. */
/* Parameter to proc3 is unnamed, with type a function that returns
int and takes a single argument of type function with one int
parameter returning int. In particular, proc3 is not a function
that takes a parameter y that is a function with one int parameter
returning int. 8-) */
int
proc3
(
int
(
y
(
x
)));
int
main
()
{
return
proc
(
proc2
);
/* { dg-bogus "integer from pointer" } */
proc
(
proc2
);
/* { dg-bogus "integer from pointer" } */
return
proc3
(
proc
);
/* { dg-bogus "incompatible pointer type" } */
}
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