Add XFAILing test, exposing issue ROOT-5248.

This commit is contained in:
Vassil Vassilev 2013-06-06 15:08:18 +02:00 committed by sftnight
parent ebd1976bf3
commit 92098d2046

View File

@ -0,0 +1,19 @@
// RUN: cat %s | %cling | FileCheck %s
// XFAIL:*
// The test exposes a weakness in the declaration extraction of types. As
// reported in issue ROOT-5248.
extern "C" int printf(const char* fmt, ...);
class MyClass;
extern MyClass* my;
class MyClass {
public: MyClass* getMyClass() {
printf("Works!\n");
return 0;
}
} cl;
MyClass* my = cl.getMyClass();
.q
//CHECK: Works!