1*67e74705SXin Li // RUN: %clang_cc1 -std=c++98 %s -verify -fexceptions -fcxx-exceptions -pedantic-errors
2*67e74705SXin Li // RUN: %clang_cc1 -std=c++11 %s -verify -fexceptions -fcxx-exceptions -pedantic-errors
3*67e74705SXin Li // RUN: %clang_cc1 -std=c++14 %s -verify -fexceptions -fcxx-exceptions -pedantic-errors
4*67e74705SXin Li // RUN: %clang_cc1 -std=c++1z %s -verify -fexceptions -fcxx-exceptions -pedantic-errors
5*67e74705SXin Li
6*67e74705SXin Li namespace dr777 { // dr777: 3.7
7*67e74705SXin Li #if __cplusplus >= 201103L
8*67e74705SXin Li template <typename... T>
f(int i=0,T...args)9*67e74705SXin Li void f(int i = 0, T ...args) {}
ff()10*67e74705SXin Li void ff() { f(); }
11*67e74705SXin Li
12*67e74705SXin Li template <typename... T>
g(int i=0,T...args,T...args2)13*67e74705SXin Li void g(int i = 0, T ...args, T ...args2) {}
14*67e74705SXin Li
15*67e74705SXin Li template <typename... T>
h(int i=0,T...args,int j=1)16*67e74705SXin Li void h(int i = 0, T ...args, int j = 1) {}
17*67e74705SXin Li #endif
18*67e74705SXin Li }
19*67e74705SXin Li
20*67e74705SXin Li // expected-no-diagnostics
21