brintos

brintos / llvm-project-archived public Read only

0
0
Text · 888 B · 0be3f0b Raw
24 lines · cpp
1// RUN: %clang_cc1 -std=c++98 -pedantic-errors -verify=expected %s2// RUN: %clang_cc1 -std=c++11 -pedantic-errors -verify=expected %s3// RUN: %clang_cc1 -std=c++14 -pedantic-errors -verify=expected %s4// RUN: %clang_cc1 -std=c++17 -pedantic-errors -verify=expected %s5// RUN: %clang_cc1 -std=c++20 -pedantic-errors -verify=expected %s6// RUN: %clang_cc1 -std=c++23 -pedantic-errors -verify=expected %s7// RUN: %clang_cc1 -std=c++2c -pedantic-errors -verify=expected %s8 9 10namespace cwg3005 { // cwg3005: 21 tentatively ready 2025-09-1211 12void f(13    int _, // #cwg3005-first-param14    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 cwg300524