[ELF] Avoid make in elf::writeARMCmseImportLib
[llvm-project.git] / clang / test / Analysis / number-object-conversion.mm
blob32628b2e8f20cb53b437b3de694450092ff659d4
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
10     return 0;
11   }
12   return 1;