aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorGiovanni Bajo <giovannibajo@gcc.gnu.org>2004-01-30 15:12:45 +0000
committerGiovanni Bajo <giovannibajo@gcc.gnu.org>2004-01-30 15:12:45 +0000
commit63823931f932280d827aeeae504603b499cfb1b5 (patch)
tree219eed07798c0b1928bc653cd3a4d5f453aca5e9 /gcc
parent5840af0f8593a9d510df2d07b8b50b34a468769a (diff)
downloadgcc-63823931f932280d827aeeae504603b499cfb1b5.zip
gcc-63823931f932280d827aeeae504603b499cfb1b5.tar.gz
gcc-63823931f932280d827aeeae504603b499cfb1b5.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/g++.dg/template/sizeof6.C13
2 files changed, 18 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 4f95129..b1ba65b 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2004-01-30 Giovanni Bajo <giovannibajo@gcc.gnu.org>
+
+ PR c++/13683
+ * g++.dg/template/sizeof6.C: New test.
+
2004-01-30 Eric Botcazou <ebotcazou@libertysurf.fr>
* 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 0000000..3ef3794
--- /dev/null
+++ b/gcc/testsuite/g++.dg/template/sizeof6.C
@@ -0,0 +1,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())) };
+};