forked from llvm/llvm-project
-
Notifications
You must be signed in to change notification settings - Fork 333
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1230 from hyp/cherry-05eedf1f5b449ae42f5493576164…
…b0f9a001646c Cherry-pick 05eedf1
- Loading branch information
Showing
4 changed files
with
81 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// RUN: not %clang_cc1 -verify %s 2>&1 | FileCheck %s | ||
|
||
#include "verify-any-file.h" | ||
// expected-error@*:* {{unknown type name 'unexpected'}} | ||
|
||
// expected-error@*:* {{missing error}} | ||
|
||
// expected-error@*:123 {{invalid line : "*" required}} | ||
// | ||
// CHECK: error: 'error' diagnostics expected but not seen: | ||
// CHECK-NEXT: File * Line * (directive at {{.*}}verify-any-file.c:6): missing error | ||
// CHECK-NEXT: error: 'error' diagnostics seen but not expected: | ||
// CHECK-NEXT: File {{.*}}verify-any-file.c Line 8: missing or invalid line number following '@' in expected '*' | ||
// CHECK-NEXT: 2 errors generated. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
unexpected var; |