cling/test/CodeUnloading/Simple.C
2012-12-02 19:25:49 +00:00

15 lines
382 B
C

// RUN: cat %s | %cling -Xclang -verify | FileCheck %s
// Test the ability of unloading the last transaction. Here as a matter of fact
// we unload the wrapper as well and TODO: decrement the unique wrapper counter.
int f = 0;
.U
.rawInput 1
extern "C" int printf(const char* fmt, ...);
void f() {
printf("Now f is a function\n");
}
.rawInput 0
f()
//CHECK: Now f is a function