From: Giovanni Bajo Date: Fri, 30 Jan 2004 15:12:45 +0000 (+0000) Subject: re PR c++/13683 (bogus warning about passing non-PODs through ellipsis) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=63823931f932280d827aeeae504603b499cfb1b5;p=gcc.git re PR c++/13683 (bogus warning about passing non-PODs through ellipsis) PR c++/13683 * g++.dg/template/sizeof6.C: New test. From-SVN: r76964 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 4f95129b9e9..b1ba65bd5b7 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2004-01-30 Giovanni Bajo + + PR c++/13683 + * g++.dg/template/sizeof6.C: New test. + 2004-01-30 Eric Botcazou * gcc.dg/fwritable-strings-1.c: New test. diff --git a/gcc/testsuite/g++.dg/template/sizeof6.C b/gcc/testsuite/g++.dg/template/sizeof6.C new file mode 100644 index 00000000000..3ef3794b5b7 --- /dev/null +++ b/gcc/testsuite/g++.dg/template/sizeof6.C @@ -0,0 +1,13 @@ +// { dg-do compile } +// Contributed by Giovanni Bajo +// 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())) }; +};