summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/expr/stdarg2.C
blob: cf2eabcb1612f1707720362ab89288ca59463172 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// PR target/26141

#include <stdarg.h>

struct S
{
  double a;
};

void
foo (int z, ...)
{
  struct S arg;
  va_list ap;
  arg = va_arg (ap, struct S);
}


struct T
{
  __complex__ float a;
};

void
bar (int z, ...)
{
  struct T arg;
  va_list ap;
  arg = va_arg (ap, struct T);
}