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 2 3#include "Inputs/system-header-simulator-objc.h" 4 5NSNumber* generateNumber(); 6 7// expected-no-diagnostics 8int test_initialization_in_ifstmt() { // Don't warn on initialization in guard. 9 if (NSNumber* number = generateNumber()) { // no-warning 10 return 0; 11 } 12 return 1; 13} 14