Fixes #93369 --------- Co-authored-by: Timm Baeder <tbaeder@redhat.com> Co-authored-by: S. B. Tam <cpplearner@outlook.com>
14 lines
560 B
C++
14 lines
560 B
C++
// RUN: %clang_cc1 -verify -std=c++20 %s
|
|
|
|
namespace GH61885 {
|
|
void similar() { // expected-note {{'similar' declared here}}
|
|
if constexpr (similer<>) {} // expected-error {{use of undeclared identifier 'similer'; did you mean 'similar'?}}
|
|
}
|
|
void a() { if constexpr (__adl_swap<>) {}} // expected-error{{use of undeclared identifier '__adl_swap'; did you mean '__sync_swap'?}}
|
|
|
|
int AA() { return true;} // expected-note {{'AA' declared here}}
|
|
|
|
void b() { if constexpr (AAA<>) {}} // expected-error {{use of undeclared identifier 'AAA'; did you mean 'AA'?}}
|
|
}
|
|
|