24 lines
898 B
C
24 lines
898 B
C
//------------------------------------------------------------------------------
|
|
// 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 -x c -Xclang -verify 2>&1 | FileCheck %s
|
|
// RUN: cat %s | %cling -x c -fsyntax-only -Xclang -verify 2>&1
|
|
|
|
// Validate cling C mode.
|
|
|
|
// Fix value printing!
|
|
|
|
int printf(const char*,...);
|
|
printf("CHECK 123 %p\n", gCling); // CHECK: CHECK 123
|
|
|
|
12 // expected-error {{ValueExtractionSynthesizer could not find: 'cling::runtime::internal::setValueNoAlloc'.}}
|
|
|
|
32 // expected-error {{ValueExtractionSynthesizer could not find: 'cling::runtime::internal::setValueNoAlloc'.}}
|
|
|
|
.q
|