diff options
Diffstat (limited to 'test/Analysis/svalbuilder-logic.c')
-rw-r--r-- | test/Analysis/svalbuilder-logic.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/test/Analysis/svalbuilder-logic.c b/test/Analysis/svalbuilder-logic.c deleted file mode 100644 index 1595acb93569..000000000000 --- a/test/Analysis/svalbuilder-logic.c +++ /dev/null @@ -1,16 +0,0 @@ -// RUN: %clang_analyze_cc1 -analyzer-checker=core,unix -verify %s -// expected-no-diagnostics - -// Testing core functionality of the SValBuilder. - -int SValBuilderLogicNoCrash(int *x) { - return 3 - (int)(x +3); -} - -// http://llvm.org/bugs/show_bug.cgi?id=15863 -// Don't crash when mixing 'bool' and 'int' in implicit comparisons to 0. -void pr15863() { - extern int getBool(); - _Bool a = getBool(); - (void)!a; // no-warning -} |