diff options
Diffstat (limited to 'test/Analysis/diagnostics/explicit-suppression.cpp')
-rw-r--r-- | test/Analysis/diagnostics/explicit-suppression.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/test/Analysis/diagnostics/explicit-suppression.cpp b/test/Analysis/diagnostics/explicit-suppression.cpp index 6bc950f5d5..79afeed6c5 100644 --- a/test/Analysis/diagnostics/explicit-suppression.cpp +++ b/test/Analysis/diagnostics/explicit-suppression.cpp @@ -13,7 +13,7 @@ void testCopyNull(int *I, int *E) { std::copy(I, E, (int *)0); #ifndef SUPPRESSED // This line number comes from system-header-simulator-cxx.h. - // expected-warning@65 {{Dereference of null pointer}} + // expected-warning@79 {{Dereference of null pointer}} #endif } @@ -66,6 +66,15 @@ void testCopyNull(int *I, int *E) { + + + + + + + + + // PR15613: expected-* can't refer to diagnostics in other source files. // The current implementation only matches line numbers, but has an upper limit // of the number of lines in the main source file. |