summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/temp-va-arg-bug.C
blob: 085915f907edb5803d454092301986d4c79dd05f (plain)
1
2
3
4
5
6
7
8
9
10
11
// { dg-options "--std=c++0x" }
// { dg-options "-Wno-abi --std=c++0x" { target arm_eabi } }
#include <stdarg.h>

struct S { };
void f(S const &);

void g(va_list args)
{
  f(va_arg(args, S));
}