Update expected types in output checks
This commit is contained in:
parent
a7dd6fde7e
commit
25ebd992ac
@ -46,7 +46,7 @@ E foo = k1
|
||||
//CHECK: (E) (k1) : (unsigned int) 1
|
||||
struct X { enum { k0, k1 = 2 }; } bar
|
||||
X::k1
|
||||
//CHECK: (X::(anonymous)) (X::k1) : (unsigned int) 2
|
||||
//CHECK: (X::(unnamed enum {{.*}})) (X::k1) : (unsigned int) 2
|
||||
|
||||
clang::Sema& S = gCling->getSema();
|
||||
const LookupHelper& lookup = gCling->getLookupHelper();
|
||||
|
@ -81,7 +81,7 @@ gTest
|
||||
|
||||
// Don't call destructor on printed lambda
|
||||
[] {}
|
||||
// CHECK-NEXT: () @0x{{[0-9a-f]+}}
|
||||
// CHECK-NEXT: ((lambda {{.*}}) @0x{{[0-9a-f]+}}
|
||||
|
||||
// expected-no-diagnostics
|
||||
.q
|
||||
|
@ -32,13 +32,13 @@ std::weak_ptr<int> i_wptr
|
||||
//CHECK: (std::weak_ptr<int> &) std::weak_ptr -> nullptr
|
||||
|
||||
i_uptr = std::unique_ptr<int>(new int (3))
|
||||
//CHECK: (std::unique_ptr &) std::unique_ptr -> 0x{{[0-9a-f]+}}
|
||||
//CHECK: (std::unique_ptr<int, std::default_delete<int> > &) std::unique_ptr -> 0x{{[0-9a-f]+}}
|
||||
|
||||
i_uptr
|
||||
//CHECK: (std::unique_ptr<int> &) std::unique_ptr -> 0x{{[0-9a-f]+}}
|
||||
|
||||
i_sptr = std::make_shared<int>(6)
|
||||
//CHECK: (std::shared_ptr &) std::shared_ptr -> 0x{{[0-9a-f]+}}
|
||||
//CHECK: (std::shared_ptr<int> &) std::shared_ptr -> 0x{{[0-9a-f]+}}
|
||||
|
||||
i_sptr
|
||||
//CHECK: (std::shared_ptr<int> &) std::shared_ptr -> 0x{{[0-9a-f]+}}
|
||||
|
@ -51,7 +51,7 @@ q // CHECK: (const int *) 0x123 <invalid memory address>
|
||||
// PR ROOT-5467
|
||||
&A::someFunc // CHECK: (int (A::*)(float)) Function @0x{{[0-9a-f]+}}
|
||||
|
||||
nullptr // CHECK: (nullptr_t) nullptr
|
||||
nullptr // CHECK: (std::nullptr_t) nullptr
|
||||
|
||||
true // CHECK: (bool) true
|
||||
false // CHECK: (bool) false
|
||||
@ -89,7 +89,7 @@ auto bla=[](double *x, double *par, int blub){return x[0]*blub;} // CHECK: ((lam
|
||||
|
||||
#include <functional>
|
||||
using namespace std::placeholders;
|
||||
auto fn_moo = std::bind (bla, _1,_2,10) // CHECK: ({{.*\(lambda\).*}}> &) @0x{{[0-9a-f]+}}
|
||||
auto fn_moo = std::bind (bla, _1,_2,10) // CHECK: ({{.*\(lambda\).*}} &) @0x{{[0-9a-f]+}}
|
||||
|
||||
// Make sure cling survives
|
||||
12 // CHECK: (int) 12
|
||||
@ -137,4 +137,4 @@ namespace PR180 {
|
||||
using Foo = Derived<base>;
|
||||
}
|
||||
auto bar = PR180::Foo()
|
||||
// CHECK: (PR180::Derived<PR180::base> &) @0x{{[0-9a-f]+}}
|
||||
// CHECK: (PR180::Foo &) @0x{{[0-9a-f]+}}
|
||||
|
@ -14,6 +14,6 @@ template<> struct F<0> {
|
||||
enum {RET = 1};
|
||||
};
|
||||
F<7>::RET
|
||||
//CHECK: (F<7>::(anonymous)) (F<7>::RET) : ({{(unsigned )?}}int) 5040
|
||||
//CHECK: (F<7>::(unnamed enum {{.*}})) (F<7>::RET) : ({{(unsigned )?}}int) 5040
|
||||
|
||||
.q
|
||||
|
Loading…
Reference in New Issue
Block a user