cling/test/Interfaces/execute.C
Vassil Vassilev f48a4881cd Add super efficient execute function. It doesn't do any fancy things with the
declarations - it just compiles and runs given expression or statement.


git-svn-id: http://root.cern.ch/svn/root/trunk@46636 27541ba8-7e3a-0410-8455-c3a389f83636
2012-10-18 11:56:20 +00:00

9 lines
224 B
C

// RUN: cat %s | %cling 2>&1 | FileCheck %s
#include "cling/Interpreter/Interpreter.h"
gCling->execute("1;");
extern "C" int printf(const char* fmt, ...);
gCling->execute("printf(\"%d\", printf(\"%d\",1));");
// CHECK: 11