Debian Codegraph @

clang/test/CXX/drs/cwg30xx.cpp

raw
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
9
10 namespace cwg3005 { // cwg3005: 21 ready 2025-09-12
11
12 void f(
13 int _, // #cwg3005-first-param
14 int _)
15 // expected-error@-1 {{redefinition of parameter '_'}}
16 // expected-note@#cwg3005-first-param {{previous definition is here}}
17 {
18 int _;
19 // expected-error@-1 {{redefinition of '_'}}
20 // expected-note@#cwg3005-first-param {{previous declaration is here}}
21 }
22
23 } // namespace cwg3005