[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / clang / test / Analysis / svalbuilder-logic.c
blobad0347c3f8b7be1ba6594c35d6842ee5393ba37d
1 // RUN: %clang_analyze_cc1 -analyzer-checker=core,unix -Wno-pointer-to-int-cast -verify %s
2 // expected-no-diagnostics
4 // Testing core functionality of the SValBuilder.
6 int SValBuilderLogicNoCrash(int *x) {
7 return 3 - (int)(x +3);
10 // http://llvm.org/bugs/show_bug.cgi?id=15863
11 // Don't crash when mixing 'bool' and 'int' in implicit comparisons to 0.
12 void pr15863(void) {
13 extern int getBool(void);
14 _Bool a = getBool();
15 (void)!a; // no-warning