diff options
Diffstat (limited to 'clang/test/Analysis/return-value-guaranteed.cpp')
-rw-r--r-- | clang/test/Analysis/return-value-guaranteed.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/test/Analysis/return-value-guaranteed.cpp b/clang/test/Analysis/return-value-guaranteed.cpp index 367a8e5906a..2d04a264ad8 100644 --- a/clang/test/Analysis/return-value-guaranteed.cpp +++ b/clang/test/Analysis/return-value-guaranteed.cpp @@ -24,6 +24,7 @@ bool parseFoo(Foo &F) { // class-note@-1 {{The value 0 is assigned to 'F.Field'}} return !MCAsmParser::Error(); // class-note@-1 {{'MCAsmParser::Error' returns true}} + // class-note@-2 {{Returning zero, which participates in a condition later}} } bool parseFile() { @@ -57,6 +58,7 @@ namespace test_break { struct MCAsmParser { static bool Error() { return false; // class-note {{'MCAsmParser::Error' returns false}} + // class-note@-1 {{Returning zero, which participates in a condition later}} } }; @@ -72,6 +74,7 @@ bool parseFoo(Foo &F) { return MCAsmParser::Error(); // class-note@-1 {{Calling 'MCAsmParser::Error'}} // class-note@-2 {{Returning from 'MCAsmParser::Error'}} + // class-note@-3 {{Returning zero, which participates in a condition later}} } bool parseFile() { |