Skip to content

Commit 8bb6738

Browse files
committed
apply feedback
1 parent 425c29a commit 8bb6738

File tree

1 file changed

+16
-12
lines changed

1 file changed

+16
-12
lines changed

clang/test/CXX/drs/cwg30xx.cpp

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,23 @@
1-
// RUN: %clang_cc1 -std=c++98 -pedantic-errors -verify=expected,cxx98 %s
2-
// RUN: %clang_cc1 -std=c++11 -pedantic-errors -verify=expected,since-cxx11,cxx11-23 %s
3-
// RUN: %clang_cc1 -std=c++14 -pedantic-errors -verify=expected,since-cxx11,cxx11-23 %s
4-
// RUN: %clang_cc1 -std=c++17 -pedantic-errors -verify=expected,since-cxx11,cxx11-23 %s
5-
// RUN: %clang_cc1 -std=c++20 -pedantic-errors -verify=expected,since-cxx11,cxx11-23,since-cxx20 %s
6-
// RUN: %clang_cc1 -std=c++23 -pedantic-errors -verify=expected,since-cxx11,cxx11-23,since-cxx20,since-cxx23 %s
7-
// RUN: %clang_cc1 -std=c++2c -pedantic-errors -verify=expected,since-cxx11,since-cxx20,since-cxx23,since-cxx26 %s
1+
// RUN: %clang_cc1 -std=c++98 -pedantic-errors -verify=expected %s
2+
// RUN: %clang_cc1 -std=c++11 -pedantic-errors -verify=expected %s
3+
// RUN: %clang_cc1 -std=c++14 -pedantic-errors -verify=expected %s
4+
// RUN: %clang_cc1 -std=c++17 -pedantic-errors -verify=expected %s
5+
// RUN: %clang_cc1 -std=c++20 -pedantic-errors -verify=expected %s
6+
// RUN: %clang_cc1 -std=c++23 -pedantic-errors -verify=expected %s
7+
// RUN: %clang_cc1 -std=c++2c -pedantic-errors -verify=expected %s
88

99

1010
namespace cwg3005 { // cwg3005: 21 open 2025-03-10
1111

12-
void f(int _, // expected-note {{previous declaration is here}} \
13-
// expected-note {{previous definition is here}}
14-
int _) // expected-error {{redefinition of parameter '_'}}
12+
void f(
13+
int _, // #cwg3005-first-param
14+
int _)
15+
// expected-error@-1 {{redefinition of parameter '_'}}
16+
// expected-note@#cwg3005-first-param {{previous declaration is here}}
1517
{
16-
int _; // expected-error {{redefinition of '_'}}
18+
int _;
19+
// expected-error@-1 {{redefinition of '_'}}
20+
// expected-note@#cwg3005-first-param {{previous declaration is here}}
1721
}
1822

19-
}
23+
} // namespace cwg3005

0 commit comments

Comments
 (0)