view gcc/testsuite/g++.dg/other/stdarg2.C @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 04ced10e8804
children
line wrap: on
line source

// PR c++/11929
// Bug: We were complaining about the call to va_start because o is of
// non-POD type.

struct s {
  s(int);
};

void test(s o, ...) {
  __builtin_va_list varg;
  __builtin_va_start(varg, o);
}