2013-10-14 09:11:39 +02:00

15 lines
366 B
C

// RUN: cat %s | %cling | 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