1*9b0a7ceaSJohn McCall// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fsyntax-only -fobjc-arc -x objective-c %s.result 2*9b0a7ceaSJohn McCall// RUN: arcmt-test --args -triple x86_64-apple-darwin10 -fsyntax-only -x objective-c %s > %t 3d70fb981SJohn McCall// RUN: diff %t %s.result 4d70fb981SJohn McCall 5d70fb981SJohn McCall#include "Common.h" 6d70fb981SJohn McCall 7d70fb981SJohn McCall@interface myController : NSObject 8d70fb981SJohn McCall-(id)test:(id)x; 9d70fb981SJohn McCall@end 10d70fb981SJohn McCall 11d70fb981SJohn McCall#define MY_MACRO1(x) 12d70fb981SJohn McCall#define MY_MACRO2(x) (void)x 13d70fb981SJohn McCall 14d70fb981SJohn McCall@implementation myController 15d70fb981SJohn McCall-(id) test:(id) x { 16d70fb981SJohn McCall return x; 17d70fb981SJohn McCall} 18d70fb981SJohn McCall 19d70fb981SJohn McCall-(void)dealloc 20d70fb981SJohn McCall{ 21d70fb981SJohn McCall id array, array_already_empty; 22d70fb981SJohn McCall for (id element in array_already_empty) { 23d70fb981SJohn McCall } 24d70fb981SJohn McCall 25d70fb981SJohn McCall ; 26d70fb981SJohn McCall 27d70fb981SJohn McCall int b, b_array_already_empty; 28d70fb981SJohn McCall if (b_array_already_empty) ; 29d70fb981SJohn McCall 30d70fb981SJohn McCall if (b_array_already_empty) { 31d70fb981SJohn McCall } 32d70fb981SJohn McCall 33d70fb981SJohn McCall if (b) 34d70fb981SJohn McCall MY_MACRO1(array); 35d70fb981SJohn McCall if (b) 36d70fb981SJohn McCall MY_MACRO2(array); 37d70fb981SJohn McCall} 38d70fb981SJohn McCall@end 39