Skip to content

Commit 31a2934

Browse files
committed
Add examples with ellipsis and parameter packs
1 parent 0a2d3e0 commit 31a2934

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

clang/test/CXX/drs/cwg18xx.cpp

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -707,4 +707,19 @@ struct A {
707707
struct B : A {
708708
void k(int) {} // OK, shadows A::k
709709
};
710+
711+
void l() {}
712+
void l(...) {}
713+
714+
#if __cplusplus >= 201103L
715+
template <typename T>
716+
void m(T) {}
717+
template <typename... Ts>
718+
void m(Ts...) {}
719+
720+
template <typename T, typename U>
721+
void m2(T, U) {}
722+
template <typename... Ts, typename U>
723+
void m2(Ts..., U) {}
724+
#endif
710725
} // namespace cwg1898

0 commit comments

Comments
 (0)