cling/test/CodeUnloading/RereadFile.C

26 lines
776 B
C++
Raw Normal View History

2016-06-26 20:18:41 +02:00
//------------------------------------------------------------------------------
// CLING - the C++ LLVM-based InterpreterG :)
//
// This file is dual-licensed: you can choose to license it under the University
// of Illinois Open Source License or the GNU Lesser General Public License. See
// LICENSE.TXT for details.
//------------------------------------------------------------------------------
// RUN: cat %s | %cling -I%p 2>&1 | FileCheck %s
// Test that we re-read file, e.g. that we uncache symbols and file content.
2016-06-27 08:39:29 +02:00
extern "C" int printf(const char*,...);
2016-06-27 09:54:36 +02:00
// work around ROOT-8240
42 // CHECK: (int) 42
2016-06-26 20:18:41 +02:00
// ROOT-7858: forget symbols
.L macro1.h
macro() // CHECK: version 1
//CHECK: (int) 1
.U macro1.h
2016-06-27 00:03:23 +02:00
.L macro2.h
2016-06-26 20:18:41 +02:00
macro() // CHECK: 2.version 2
//CHECK: (int) 2