Debian Codegraph @

gcc/testsuite/g++.dg/cpp26/variadic-comma5.C

raw
1 // P3176R1 - The Oxford variadic comma
2 // { dg-do compile { target c++11 } }
3 // { dg-additional-options "-Wdeprecated-variadic-comma-omission" }
4
5 void f1 (int...); // { dg-warning "omission of ',' before varargs '...' is deprecated in" }
6 #if __cplusplus >= 202002L
7 void f2 (auto...);
8 void f3 (auto......); // { dg-warning "omission of ',' before varargs '...' is deprecated in" "" { target c++20 } }
9 #endif
10 template <typename ...T>
11 void f4 (T......); // { dg-warning "omission of ',' before varargs '...' is deprecated in" }
12 template <typename ...T>
13 void f5 (T...);
14 template <typename ...T>
15 void f6 (T..., int...); // { dg-warning "omission of ',' before varargs '...' is deprecated in" }
16 void
17 f7 (char...) // { dg-warning "omission of ',' before varargs '...' is deprecated in" }
18 {
19 }