Skip to content
Snippets Groups Projects
Commit d6701e3d authored by Axel Naumann's avatar Axel Naumann
Browse files

Improve version string; adapt test.

parent b3511ffe
No related branches found
No related tags found
No related merge requests found
......@@ -212,10 +212,11 @@ namespace cling {
}
const char* Interpreter::getVersion() const {
return "cling http://cern.ch/cling - version "
#ifdef CLING_VERSION
return CLING_VERSION
CLING_VERSION;
#else
return "<unknown>";
"<unknown>";
#endif
}
......
......@@ -15,6 +15,6 @@
class MyClass { public: MyClass(){ gCling->process("gCling->getVersion()");} };
MyClass *My = new MyClass(); // CHECK: {{.*Id.*}}
MyClass *My = new MyClass(); // CHECK: (const char *) "cling http://cern.ch/cling
.q
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment