Fix expected diags in test/Pragmas/load.C:

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!.
This commit is contained in:
Axel Naumann 2021-03-15 12:36:17 +01:00 committed by jenkins
parent 0ae95fb193
commit 608a992e5f
2 changed files with 1 additions and 2 deletions

View File

@ -10,7 +10,6 @@
// RUN: cat %s | %cling -L %T -Xclang -verify 2>&1 | FileCheck %s
#pragma cling load("DoesNotExistPleaseRecover")
// expected-error@input_line_12:1{{expected is not a library; did you mean #include "DoesNotExistPleaseRecover"}}
// expected-error@input_line_12:1{{'DoesNotExistPleaseRecover' file not found}}
#pragma cling load("libcall_lib")

View File

@ -8,6 +8,6 @@
// RUN: cat %s | %cling -I%S -Xclang -verify 2>&1
#pragma cling load("P0.h", "P1.h","P2.h") //expected-error {{expected is not a library; did you mean #include "P0.h"}}
#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