]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/Rewriter/rewrite-foreach-6.m
Updaet clang to 92395.
[FreeBSD/FreeBSD.git] / test / Rewriter / rewrite-foreach-6.m
1 // RUN: %clang_cc1 %s -rewrite-objc -o -
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