repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Require target lra in gcc.dg/pr108095.c
[official-gcc.git]
/
gcc
/
testsuite
/
gdc.dg
/
pr96154b.d
blob
dec7f489308a92b083048782ae5a1758c33af168
1
// { dg-options "-Wno-varargs" }
2
// { dg-do compile }
3
4
import
core
.
stdc
.
stdarg
;
5
6
void
7
error
(
int
a
)
8
{
9
va_list vp
;
10
va_start
(
vp
,
a
);
// { dg-error "used in function with fixed arguments" }
11
}
12
13
void
14
warn
(
int
a
,
int
b
, ...)
15
{
16
va_list vp
;
17
va_start
(
vp
,
a
);
// No warning because of -Wno-varargs in effect.
18
va_end
(
vp
);
19
}