|
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 |
8 | 8 |
|
9 | 9 |
|
10 | 10 | namespace cwg3005 { // cwg3005: 21 open 2025-03-10
|
11 | 11 |
|
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}} |
15 | 17 | {
|
16 |
| - int _; // expected-error {{redefinition of '_'}} |
| 18 | + int _; |
| 19 | + // expected-error@-1 {{redefinition of '_'}} |
| 20 | + // expected-note@#cwg3005-first-param {{previous declaration is here}} |
17 | 21 | }
|
18 | 22 |
|
19 |
| -} |
| 23 | +} // namespace cwg3005 |
0 commit comments