dr7xx.cpp 664 B

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