Dominic Chen | 184c624 | 2017-03-03 18:02:02 +0000 | [diff] [blame^] | 1 | // RUN: %clang_analyze_cc1 -analyzer-checker=core -analyzer-store=region -analyzer-disable-all-checks -verify %s |
| 2 | // RUN: %clang_analyze_cc1 -analyzer-disable-all-checks -analyzer-checker=core -analyzer-store=region -verify %s |
| 3 | // RUN: %clang_analyze_cc1 -analyzer-disable-all-checks -verify %s |
| 4 | // RUN: not %clang_analyze_cc1 -analyzer-checker=core -analyzer-store=region -analyzer-disable-checker -verify %s 2>&1 | FileCheck %s |
Anna Zaks | d5478fd | 2014-08-29 20:01:38 +0000 | [diff] [blame] | 5 | // expected-no-diagnostics |
| 6 | |
| 7 | // CHECK: use -analyzer-disable-all-checks to disable all static analyzer checkers |
| 8 | int buggy() { |
| 9 | int x = 0; |
| 10 | return 5/x; // no warning |
Dominic Chen | 184c624 | 2017-03-03 18:02:02 +0000 | [diff] [blame^] | 11 | } |