[AMDGPU][AsmParser][NFC] Get rid of custom default operand handlers.
[llvm-project.git] / clang / test / Analysis / PR47511.cpp
blobd42799f4fbde5e6be4653c7b2ff655607e4e1226
1 // RUN: %clang_analyze_cc1 -std=c++20 -w -analyzer-checker=core -verify %s
3 // expected-no-diagnostics
5 namespace std {
6 struct strong_ordering {
7 int n;
8 constexpr operator int() const { return n; }
9 static const strong_ordering equal, greater, less;
11 constexpr strong_ordering strong_ordering::equal = {0};
12 constexpr strong_ordering strong_ordering::greater = {1};
13 constexpr strong_ordering strong_ordering::less = {-1};
14 } // namespace std
16 void test() {
17 // no crash
18 (void)(0 <=> 0);