Add test for unloading classes.
This commit is contained in:
parent
55fb5aa7cb
commit
5765fb83f5
18
test/CodeUnloading/Classes.C
Normal file
18
test/CodeUnloading/Classes.C
Normal file
@ -0,0 +1,18 @@
|
||||
// RUN: cat %s | %cling 2>&1 | FileCheck %s
|
||||
|
||||
extern "C" int printf(const char* fmt, ...);
|
||||
.storeState "preUnload"
|
||||
class MyClass{
|
||||
private:
|
||||
double member;
|
||||
public:
|
||||
MyClass() : member(42){}
|
||||
static int get12(){ return 12; }
|
||||
double getMember(){ return member; }
|
||||
}; MyClass m; m.getMember(); MyClass::get12();
|
||||
.U
|
||||
.compareState "preUnload"
|
||||
//CHECK-NOT: Differences
|
||||
float MyClass = 1.1
|
||||
//CHECK: (float) 1.1
|
||||
.q
|
Loading…
x
Reference in New Issue
Block a user