1 // RUN: %clang_analyze_cc1 -triple i386-apple-darwin10 -fblocks -fobjc-arc -w -analyzer-checker=osx.NumberObjectConversion -analyzer-config osx.NumberObjectConversion:Pedantic=true %s -verify
3 #include "Inputs/system-header-simulator-objc.h"
5 NSNumber* generateNumber();
7 // expected-no-diagnostics
8 int test_initialization_in_ifstmt() { // Don't warn on initialization in guard.
9 if (NSNumber* number = generateNumber()) { // no-warning