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
libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
pr105149.c
blob
b748f454d6d9ddcf25155ff153e161a7b0525a1d
1
/* PR c/105149 */
2
/* { dg-do compile } */
3
/* { dg-options "-O2" } */
4
5
#include <stdarg.h>
6
7
void
8
foo
(
int
s
, ...)
9
{
10
int
e
;
11
va_list
ap
;
12
13
va_start
(
ap
,
s
);
14
e
=
va_arg
(
ap
,
int
(
void
)) ();
/* { dg-error "second argument to 'va_arg' is a function type" } */
15
va_end
(
ap
);
16
}