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
1e59bcc3
Commit
1e59bcc3
authored
Feb 23, 2000
by
Franz Sirl
Committed by
Franz Sirl
Feb 23, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* execute/va-arg-13.c: New test.
From-SVN: r32127
parent
8706d596
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
0 deletions
+42
-0
gcc/testsuite/gcc.c-torture/ChangeLog
+4
-0
gcc/testsuite/gcc.c-torture/execute/va-arg-13.c
+38
-0
No files found.
gcc/testsuite/gcc.c-torture/ChangeLog
View file @
1e59bcc3
2000-02-23 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
* execute/va-arg-13.c: New test.
Wed Feb 23 14:16:06 2000 Donald Lindsay <dlindsay@cygnus.com>
* execute/va-arg-12.c: New test.
...
...
gcc/testsuite/gcc.c-torture/execute/va-arg-13.c
0 → 100644
View file @
1e59bcc3
/* derived from mozilla source code */
#include <stdarg.h>
typedef
struct
{
void
*
stream
;
va_list
ap
;
int
nChar
;
}
ScanfState
;
void
dummy
(
va_list
vap
)
{
if
(
va_arg
(
vap
,
int
)
!=
1234
)
abort
();
return
;
}
void
test
(
int
fmt
,
...)
{
ScanfState
state
,
*
statep
;
statep
=
&
state
;
va_start
(
statep
->
ap
,
fmt
);
dummy
(
statep
->
ap
);
va_end
(
statep
->
ap
);
va_start
(
state
.
ap
,
fmt
);
dummy
(
state
.
ap
);
va_end
(
state
.
ap
);
return
;
}
int
main
(
void
)
{
test
(
456
,
1234
);
exit
(
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