Daniel Dunbar | d7d5f02 | 2009-03-24 02:24:46 +0000 | [diff] [blame] | 1 | // RUN: clang-cc %s -rewrite-objc -o=- |
Chris Lattner | 338d1e2 | 2008-01-31 05:10:40 +0000 | [diff] [blame] | 2 | // 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 | |||||
9 | void foo(NSMutableArray *notificationArray, id X) { | ||||
10 | for (NSNotification *notification in notificationArray) | ||||
11 | [X postNotification:notification]; | ||||
12 | } | ||||
13 |