608a992e5f
A failure to load the library will *not* trigger loading the same file as a source file: `#pragma load` will cause zero or one diagnostics, not two. Now that the diagnostic for a missing file to be `#pragma load`ed is "file not found", re-use the existing `expected-error@input_line_12` line!.
14 lines
614 B
C
14 lines
614 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 -I%S -Xclang -verify 2>&1
|
|
|
|
#pragma cling load("P0.h", "P1.h","P2.h") //expected-error {{expected P0.h to be a library, but it is not. If this is a source file, use `#include "P0.h"`}}
|
|
|
|
.q
|