Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / CXX / over / over.built / ast-20.cpp
blob4fd1c6edb34f6713295051e3028ed783a6a60724
1 // RUN: %clang_cc1 -std=c++20 -ast-dump %s -ast-dump-filter Test | FileCheck %s
3 namespace std {
4 struct strong_ordering {
5 int n;
6 constexpr operator int() const { return n; }
7 static const strong_ordering less, equal, greater;
8 };
9 constexpr strong_ordering strong_ordering::less{-1},
10 strong_ordering::equal{0}, strong_ordering::greater{1};
13 template <typename T, typename U>
14 auto Test(T* pt, U* pu) {
15 // CHECK: BinaryOperator {{.*}} '<dependent type>' '<=>'
16 // CHECK-NEXT: DeclRefExpr {{.*}} 'T *' lvalue ParmVar {{.*}} 'pt' 'T *'
17 // CHECK-NEXT: DeclRefExpr {{.*}} 'U *' lvalue ParmVar {{.*}} 'pu' 'U *'
18 (void)(pt <=> pu);