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
Clean up some minor white space issues in trans-decl.c and trans-expr.c
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
torture
/
pr45843.C
blob
f77b8cb0135d7a0fe689e5850e86edc9f598ee3a
1
// PR target/45843
2
// { dg-do run }
3
4
#include <stdarg.h>
5
6
extern "C" void abort ();
7
struct S { struct T { } a[14]; char b; };
8
struct S arg, s;
9
10
void
11
foo (int z, ...)
12
{
13
char c;
14
va_list ap;
15
va_start (ap, z);
16
c = 'a';
17
arg = va_arg (ap, struct S);
18
if (c != 'a')
19
abort ();
20
va_end (ap);
21
}
22
23
int
24
main ()
25
{
26
foo (1, s);
27
return 0;
28
}