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:
parent
0ae95fb193
commit
608a992e5f
@ -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")
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user