]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
2013-06-09 Paolo Carlini <paolo.carlini@oracle.com>
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 9 Jun 2013 18:24:39 +0000 (18:24 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 9 Jun 2013 18:24:39 +0000 (18:24 +0000)
PR c++/37404
* g++.dg/other/vararg-4.C: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@199869 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/vararg-4.C [new file with mode: 0644]

index b8fe362cfa054adba8261fc2d49827712fea018f..0628bfa798bda09685c8f3bf0bec04db41c199f5 100644 (file)
@@ -1,3 +1,8 @@
+2013-06-09  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       PR c++/37404
+       * g++.dg/other/vararg-4.C: New.
+
 2013-06-08  Vladimir Makarov  <vmakarov@redhat.com>
 
        PR rtl-optimization/57559
diff --git a/gcc/testsuite/g++.dg/other/vararg-4.C b/gcc/testsuite/g++.dg/other/vararg-4.C
new file mode 100644 (file)
index 0000000..e242cfc
--- /dev/null
@@ -0,0 +1,12 @@
+// PR c++/37404
+
+typedef __builtin_va_list __gnuc_va_list;
+typedef __gnuc_va_list va_list;
+
+template <class> struct S { static void foo () { } };
+template <class T, int N>
+struct S<T [N]> { static void foo () { T(); } };
+
+int main () {
+  S<va_list>::foo();
+}