Adapt to format changes in floating point value printing.
This commit is contained in:
parent
c41a49dabb
commit
a9808afd40
@ -36,7 +36,7 @@ gCling->evaluate("bool a = [](){return true;};", V);
|
||||
V // CHECK-NEXT: (cling::Value &) boxes [(bool) true]
|
||||
|
||||
gCling->evaluate("auto a = 12.3; a;", V);
|
||||
V // CHECK: (cling::Value &) boxes [(double) 12.300000]
|
||||
V // CHECK: (cling::Value &) boxes [(double) 12.3]
|
||||
|
||||
long LongV = 17;
|
||||
gCling->evaluate("LongV;", V);
|
||||
@ -54,10 +54,10 @@ V // CHECK: (cling::Value &) boxes [(int *) 0x12 <invalid memory address>]
|
||||
|
||||
// Savannah #96277
|
||||
gCling->evaluate("gCling->declare(\"double sin(double);\"); double one = sin(3.141/2);", V);
|
||||
V // CHECK: (cling::Value &) boxes [(double) 1.000000]
|
||||
V // CHECK: (cling::Value &) boxes [(double) 1]
|
||||
|
||||
gCling->process("double one = sin(3.141/2); // expected-note {{previous definition is here}}", &V);
|
||||
V // CHECK: (cling::Value &) boxes [(double) 1.000000]
|
||||
V // CHECK: (cling::Value &) boxes [(double) 1]
|
||||
one // CHECK: (double) 1
|
||||
int one; // expected-error {{redefinition of 'one' with a different type: 'int' vs 'double'}}
|
||||
|
||||
|
@ -20,7 +20,7 @@ t.methodDefLater()
|
||||
class TestDecl2 { public: float methodDefLater(); } b;
|
||||
float TestDecl2::methodDefLater() { return 5.f; }
|
||||
b.methodDefLater()
|
||||
// CHECK: (float) 5.00000f
|
||||
// CHECK: (float) 5f
|
||||
|
||||
static int staticFunc(int a) {
|
||||
printf("staticFunc(%d)\n", a);
|
||||
|
@ -20,7 +20,7 @@ static void setup() {
|
||||
setup();
|
||||
|
||||
// ROOT-8696
|
||||
.5 //CHECKOUT: (double) 0.500000
|
||||
.5 //CHECKOUT: (double) 0.5
|
||||
|
||||
.2>&1
|
||||
std::cerr << "Error into stdout.\n";
|
||||
|
@ -47,7 +47,7 @@ e2
|
||||
|
||||
|
||||
// Arrays:
|
||||
float farr[] = {0.,1.,2.,3.,4.,5.} // CHECK: (float [6]) { 0.{{0+}}f, 1.{{0+}}f, 2.{{0+}}f, 3.{{0+}}f, 4.{{0+}}f, 5.{{0+}}f }
|
||||
float farr[] = {0.,1.,2.,3.,4.,5.} // CHECK: (float [6]) { 0f, 1f, 2f, 3f, 4f, 5f }
|
||||
std::string sarr[3] = {"A", "B", "C"} // CHECK: (std::string [3]) { "A", "B", "C" }
|
||||
|
||||
typedef void (*F_t)(int);
|
||||
|
@ -46,7 +46,7 @@ p // CHECK: (int *) 0x123
|
||||
const int *q = (int*)0x123;
|
||||
q // CHECK: (const int *) 0x123
|
||||
|
||||
0.00001234L // CHECK: (long double) 0.00001234{{[0-9]*}}L
|
||||
0.00001234L // CHECK: (long double) 1.234e-05L
|
||||
|
||||
// PR ROOT-5467
|
||||
&A::someFunc // CHECK: (int (A::*)(float)) Function @0x{{[0-9a-f]+}}
|
||||
|
@ -26,7 +26,7 @@ std::make_tuple(2)
|
||||
//CHECK: (std::tuple<{{.*int.*}}>) { 2 }
|
||||
|
||||
std::make_tuple(1.2f)
|
||||
//CHECK: (std::tuple<{{.*float.*}}>) { 1.20000f }
|
||||
//CHECK: (std::tuple<{{.*float.*}}>) { 1.2f }
|
||||
|
||||
std::make_tuple(1, std::make_tuple(1, 'c'))
|
||||
//CHECK: (std::tuple<{{.*int.*,.*std::tuple<.*int,.*char.*>.*}}>) { 1, { 1, 'c' } }
|
||||
|
Loading…
x
Reference in New Issue
Block a user