diff options
author | Anna Zaks <ganna@apple.com> | 2013-04-15 22:37:53 +0000 |
---|---|---|
committer | Anna Zaks <ganna@apple.com> | 2013-04-15 22:37:53 +0000 |
commit | 82dd4396fcd2517d06382b7170f393d1b6351c7f (patch) | |
tree | 086cfb7d0dc3747373e9a234ecb433d615aa2941 /test/Analysis/inlining/path-notes.cpp | |
parent | 01218ffddc239a71951035d6c7698a11e323efe3 (diff) |
[analyzer] Add more specialized error messages for corner cases as per Jordan's code review for r179396
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@179571 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Analysis/inlining/path-notes.cpp')
-rw-r--r-- | test/Analysis/inlining/path-notes.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/Analysis/inlining/path-notes.cpp b/test/Analysis/inlining/path-notes.cpp index d13bb5446c..5393fa2fcb 100644 --- a/test/Analysis/inlining/path-notes.cpp +++ b/test/Analysis/inlining/path-notes.cpp @@ -208,7 +208,7 @@ void testPathNoteOnInitializer() { int testNonPrintableAssignment(int **p) { int *&y = *p; // expected-note {{'y' initialized here}} - y = 0; // expected-note {{Null pointer value stored}} + y = 0; // expected-note {{Storing null pointer value}} return *y; // expected-warning {{Dereference of null pointer (loaded from variable 'y')}} // expected-note@-1 {{Dereference of null pointer (loaded from variable 'y')}} } @@ -3704,9 +3704,9 @@ int testNonPrintableAssignment(int **p) { // CHECK-NEXT: </array> // CHECK-NEXT: <key>depth</key><integer>0</integer> // CHECK-NEXT: <key>extended_message</key> -// CHECK-NEXT: <string>Null pointer value stored</string> +// CHECK-NEXT: <string>Storing null pointer value</string> // CHECK-NEXT: <key>message</key> -// CHECK-NEXT: <string>Null pointer value stored</string> +// CHECK-NEXT: <string>Storing null pointer value</string> // CHECK-NEXT: </dict> // CHECK-NEXT: <dict> // CHECK-NEXT: <key>kind</key><string>control</string> |