mirror of
https://github.com/llvm/llvm-project.git
synced 2025-05-03 00:06:06 +00:00

Allow diagnostic checks that originate in included files to be matched without necessarily determining the line number that the diagnostic occurs on. The new syntax replaces the line number with '*'. This extension is limited to diagnostics in included files and may be used where the include file is not part of the test-suite itself. Expected uses are for diagnostics originating in system headers, or for users who use -verify in testing 3rd-party library code where the location of diagnostics in header files may change from revision to revision and their precise location is not important to the success of the test-case. llvm-svn: 212735
6 lines
68 B
C
6 lines
68 B
C
#if 0
|
|
// expected-error {{should be ignored}}
|
|
#endif
|
|
|
|
#error header
|