blob: 3ef3794b5b7f100d3c1e219740c9e32c3c6dfbf8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// { dg-do compile }
// Contributed by Giovanni Bajo <giovannibajo at gcc dot gnu dot org>
// PR c++/13683: bogus warning about passing non-PODs through ellipsis
struct B {};
struct NonPOD : B {};
struct A
{
static int check(...);
static NonPOD GetNonPOD(void);
enum { value = sizeof(A::check(A::GetNonPOD())) };
};
|