[cfe-commits] r97075 - /cfe/trunk/test/Rewriter/rewrite-nested-blocks.mm
Fariborz Jahanian
fjahanian at apple.com
Wed Feb 24 14:53:58 PST 2010
Author: fjahanian
Date: Wed Feb 24 16:53:58 2010
New Revision: 97075
URL: http://llvm.org/viewvc/llvm-project?rev=97075&view=rev
Log:
Added test case for non-objective-c situation in
my last patch.
Modified:
cfe/trunk/test/Rewriter/rewrite-nested-blocks.mm
Modified: cfe/trunk/test/Rewriter/rewrite-nested-blocks.mm
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Rewriter/rewrite-nested-blocks.mm?rev=97075&r1=97074&r2=97075&view=diff
==============================================================================
--- cfe/trunk/test/Rewriter/rewrite-nested-blocks.mm (original)
+++ cfe/trunk/test/Rewriter/rewrite-nested-blocks.mm Wed Feb 24 16:53:58 2010
@@ -24,3 +24,15 @@
}
@end
+struct S {
+ int y;
+};
+
+void foo () {
+ struct S *SELF;
+ f(^{
+ f(^{
+ SELF->y = 42;
+ });
+ });
+}
More information about the cfe-commits
mailing list