diff options
| author | Tom Care <tcare@apple.com> | 2010-07-27 23:30:21 +0000 |
|---|---|---|
| committer | Tom Care <tcare@apple.com> | 2010-07-27 23:30:21 +0000 |
| commit | 29a6250bf0755777f2e3d0b0c46c6623166c3a00 (patch) | |
| tree | 1ae695103886ace1c181a0dbe7d20e08e65e8c30 /clang/test/Analysis/additive-folding.c | |
| parent | 76bdd685c2689d75f2f096574c9ac4092092c101 (diff) | |
| download | bcm5719-llvm-29a6250bf0755777f2e3d0b0c46c6623166c3a00.tar.gz bcm5719-llvm-29a6250bf0755777f2e3d0b0c46c6623166c3a00.zip | |
Added some false positive checking to UnreachableCodeChecker
- Allowed reporting of dead macros
- Added path walking function to search for false positives in conditional statements
- Updated some affected tests
- Added some false positive test cases
llvm-svn: 109561
Diffstat (limited to 'clang/test/Analysis/additive-folding.c')
| -rw-r--r-- | clang/test/Analysis/additive-folding.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/test/Analysis/additive-folding.c b/clang/test/Analysis/additive-folding.c index 6e81fcf8c2a..e4a56513396 100644 --- a/clang/test/Analysis/additive-folding.c +++ b/clang/test/Analysis/additive-folding.c @@ -61,7 +61,7 @@ void eq_ne (unsigned a) { if (a+1 != 0) return; // no-warning if (a-1 != UINT_MAX-1) - return; // expected-warning{{never executed}} + return; // no-warning free(b); } @@ -72,7 +72,7 @@ void ne_eq (unsigned a) { if (a+1 == 0) return; // no-warning if (a-1 == UINT_MAX-1) - return; // expected-warning{{never executed}} + return; // no-warning free(b); } @@ -177,7 +177,7 @@ void adjustedLE (unsigned a) { void tautologyGT (unsigned a) { char* b = malloc(1); if (a > UINT_MAX) - return; // expected-warning{{never executed}} + return; // no-warning free(b); } |

