Home | History | Annotate | Download | only in drs
      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 
      6 namespace dr777 { // dr777: 3.7
      7 #if __cplusplus >= 201103L
      8 template <typename... T>
      9 void f(int i = 0, T ...args) {}
     10 void ff() { f(); }
     11 
     12 template <typename... T>
     13 void g(int i = 0, T ...args, T ...args2) {}
     14 
     15 template <typename... T>
     16 void h(int i = 0, T ...args, int j = 1) {}
     17 #endif
     18 }
     19 
     20 // expected-no-diagnostics
     21