File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -103,6 +103,12 @@ void ParameterPack(Args... args) {
103103 // CHECK-FIXES: void ParameterPack(const Args&... args) {
104104}
105105
106+ template <typename ... Args>
107+ void ParameterPackConst (Args const ... args) {
108+ // CHECK-MESSAGES: [[@LINE-1]]:39: warning: the const qualified parameter 'args' of type 'const ExpensiveToCopyType'
109+ // CHECK-FIXES: void ParameterPackConst(Args const&... args) {
110+ }
111+
106112template <typename ... Args>
107113void ParameterPackWithParams (const ExpensiveToCopyType E1 , ExpensiveToCopyType E2 , Args... args) {
108114 // CHECK-MESSAGES: [[@LINE-1]]:56: warning: the const qualified parameter 'E1'
@@ -117,6 +123,7 @@ void PackWithNonExpensive(int x, Args... args) {}
117123void instantiatedParameterPack () {
118124 ExpensiveToCopyType E;
119125 ParameterPack (E);
126+ ParameterPackConst (E);
120127 ParameterPackWithParams (E, E, E);
121128 PackWithNonExpensive (5 , 5 );
122129}
You can’t perform that action at this time.
0 commit comments