//------------------------------------------------------------------------------ // 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 | FileCheck %s .rawInput 1 extern "C" int printf(const char* fmt, ...); namespace MyNamespace { class MyClass { public: MyClass() { printf("MyClass constructor called!\n"); } }; void f() { printf("Function f in namespace MyNamespace called!\n"); } } .rawInput 0 MyNamespace::MyClass m = MyNamespace::MyClass(); // CHECK MyClass constructor called! MyNamespace::f(); // CHECK: Function f in namespace MyNamespace called!