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 | 0881b8882ee1a9a4be7537988b0d945bd03b63c3 (patch) | |
tree | d51e865a73a2b05cfdbfbe24fed0aecd864aacf4 /clang/test/Analysis/inlining/path-notes.cpp | |
parent | 1b8e76f14ef400f8cb88c288542ffeffd6336f69 (diff) | |
download | bcm5719-llvm-0881b8882ee1a9a4be7537988b0d945bd03b63c3.tar.gz bcm5719-llvm-0881b8882ee1a9a4be7537988b0d945bd03b63c3.zip |
[analyzer] Add more specialized error messages for corner cases as per Jordan's code review for r179396
llvm-svn: 179571
Diffstat (limited to 'clang/test/Analysis/inlining/path-notes.cpp')
-rw-r--r-- | clang/test/Analysis/inlining/path-notes.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/test/Analysis/inlining/path-notes.cpp b/clang/test/Analysis/inlining/path-notes.cpp index d13bb5446c1..5393fa2fcb1 100644 --- a/clang/test/Analysis/inlining/path-notes.cpp +++ b/clang/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> |