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