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
bbfbf340
Commit
bbfbf340
authored
Aug 28, 2000
by
Kaveh R. Ghazi
Committed by
Kaveh Ghazi
Aug 28, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* gcc.dg/return-type-2.c: New test.
From-SVN: r36010
parent
6e88e75c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
51 additions
and
0 deletions
+51
-0
gcc/testsuite/ChangeLog
+4
-0
gcc/testsuite/gcc.dg/return-type-2.c
+47
-0
No files found.
gcc/testsuite/ChangeLog
View file @
bbfbf340
2000-08-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* gcc.dg/return-type-2.c: New test.
2000-08-27 Geoff Keating <geoffk@cygnus.com>
* gcc.c-torture/compile/20000825-1.c: New test.
...
...
gcc/testsuite/gcc.dg/return-type-2.c
0 → 100644
View file @
bbfbf340
/* Bogus warnings claiming we fall off the end of a non-void function.
By Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 8/27/2000. */
/* { dg-do compile } */
/* { dg-options "-O2 -Wreturn-type" } */
extern
void
abort
(
void
)
__attribute__
((
__noreturn__
));
int
foo1
(
int
i
)
{
if
(
i
)
return
i
;
abort
();
}
/* { dg-bogus "control reaches end of non-void function" "warning for falling off end of non-void function" } */
__inline__
int
foo2
(
int
i
)
{
if
(
i
)
return
i
;
abort
();
}
/* { dg-bogus "control reaches end of non-void function" "warning for falling off end of non-void function" } */
static
int
foo3
(
int
i
)
{
if
(
i
)
return
i
;
abort
();
}
/* { dg-bogus "control reaches end of non-void function" "warning for falling off end of non-void function" } */
static
__inline__
int
foo4
(
int
i
)
{
if
(
i
)
return
i
;
abort
();
}
/* { dg-bogus "control reaches end of non-void function" "warning for falling off end of non-void function" } */
int
bar
(
int
i
)
{
return
foo1
(
i
)
+
foo2
(
i
)
+
foo3
(
i
)
+
foo4
(
i
);
}
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