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
cc79e34f
Commit
cc79e34f
authored
Jan 24, 2004
by
Zack Weinberg
Committed by
Zack Weinberg
Jan 24, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* gcc.dg/builtins-30.c: Move dg-warning marks to the proper lines.
From-SVN: r76482
parent
72afd981
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
gcc/testsuite/ChangeLog
+4
-0
gcc/testsuite/gcc.dg/builtins-30.c
+6
-6
No files found.
gcc/testsuite/ChangeLog
View file @
cc79e34f
2004-01-23 Zack Weinberg <zack@codesourcery.com>
* gcc.dg/builtins-30.c: Move dg-warning marks to the proper lines.
2004-01-24 Joseph S. Myers <jsm@polyomino.org.uk>
* gcc.dg/c90-array-lval-7.c, gcc.dg/c99-array-lval-7.c: New tests.
...
...
gcc/testsuite/gcc.dg/builtins-30.c
View file @
cc79e34f
...
...
@@ -7,21 +7,21 @@ extern double strtod (const char *, char **);
/* A built-in function may be overridden by an old-style definition
specifying too few arguments... */
double
nan
()
{
return
strtod
(
"nan"
,
0
);
/* { dg-warning "shadowing built-in" } */
{
/* { dg-warning "shadowing built-in" } */
return
strtod
(
"nan"
,
0
);
}
/* the right number, but the wrong type, arguments... */
float
nanf
(
foo
)
int
foo
UNUSED
;
int
foo
UNUSED
;
/* { dg-warning "shadowing built-in" } */
{
return
strtod
(
"nan"
,
0
);
/* { dg-warning "shadowing built-in" } */
return
strtod
(
"nan"
,
0
);
}
/* or too many arguments. */
long
double
nanl
(
foo
,
bar
)
const
char
*
foo
UNUSED
;
const
char
*
foo
UNUSED
;
/* { dg-warning "shadowing built-in" } */
int
bar
UNUSED
;
{
return
strtod
(
"nan"
,
0
);
/* { dg-warning "shadowing built-in" } */
return
strtod
(
"nan"
,
0
);
}
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