blob: c6043bb98eb4ce95b751306d005108e72e4f2859 [file] [log] [blame]
Daniel Dunbard7d5f022009-03-24 02:24:46 +00001// RUN: clang-cc %s -rewrite-objc -o=-
Chris Lattner338d1e22008-01-31 05:10:40 +00002// rdar://5716356
3// FIXME: Should be able to pipe into clang, but code is not
4// yet correct for other reasons: rdar://5716940
5
6@class NSNotification;
7@class NSMutableArray;
8
9void foo(NSMutableArray *notificationArray, id X) {
10 for (NSNotification *notification in notificationArray)
11 [X postNotification:notification];
12}
13