Add XFAILing test, exposing issue ROOT-5248.
This commit is contained in:
parent
ebd1976bf3
commit
92098d2046
19
test/Prompt/ClashingDecls.C
Normal file
19
test/Prompt/ClashingDecls.C
Normal 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!
|
Loading…
Reference in New Issue
Block a user