blob: 41d4fe21c2f0018a0eeb153ed780a37d777c8826 [file] [log] [blame]
Anna Zaks2a6e30d2012-05-02 00:05:23 +00001// RUN: %clang_cc1 -analyze -analyzer-checker=core,unix -verify %s
Andy Gibbs8e8fb3b2012-10-19 12:44:48 +00002// expected-no-diagnostics
Anna Zaks2a6e30d2012-05-02 00:05:23 +00003
4// Testing core functionality of the SValBuilder.
5
6int SValBuilderLogicNoCrash(int *x) {
7 return 3 - (int)(x +3);
8}