Simplify test - import of string literals is not supported.

This commit is contained in:
Axel Naumann 2016-04-29 09:41:20 +02:00 committed by sftnight
parent a99e7a6eaa
commit f32d1a9ec7

View File

@ -20,7 +20,7 @@ cling::Interpreter ChildInterp(*gCling, 1, argV);
//Declare something in the parent interpreter
.rawInput 1
void foo(){ printf("foo(void)\n"); }
int foo(){ return 42; }
.rawInput 0
// OR
//gCling->declare("void foo(){ llvm::outs() << \"foo(void)\\n\"; }");
@ -29,8 +29,8 @@ void foo(){ printf("foo(void)\n"); }
ChildInterp.declare("void foo(int i){ printf(\"foo(int) = %d\\n\", i); }");
//Then execute it from the child interpreter
ChildInterp.execute("foo()");
//CHECK:foo(void)
ChildInterp.echo("foo()");
//CHECK:(int) 42
//Check if function overloading works
ChildInterp.execute("foo(1)");