view gcc/testsuite/g++.dg/other/vararg-4.C @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
line wrap: on
line source

// 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();
}