Fariborz Jahanian | e61a1d4 | 2010-02-10 20:18:25 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -x objective-c++ -fblocks -fms-extensions -rewrite-objc %s -o %t-rw.cpp |
Fariborz Jahanian | 0c7627c | 2010-02-16 22:27:50 +0000 | [diff] [blame] | 2 | // RUN: %clang_cc1 -fsyntax-only -Wno-address-of-temporary -D"SEL=void*" -D"__declspec(X)=" %t-rw.cpp |
Fariborz Jahanian | e61a1d4 | 2010-02-10 20:18:25 +0000 | [diff] [blame] | 3 | // radar 7630551 |
| 4 | |
| 5 | void f(void (^b)(char c)); |
| 6 | |
| 7 | @interface a |
| 8 | - (void)processStuff; |
| 9 | @end |
| 10 | |
| 11 | @implementation a |
| 12 | - (void)processStuff { |
| 13 | f(^(char x) { }); |
| 14 | } |
| 15 | @end |
| 16 | |
| 17 | @interface b |
| 18 | - (void)processStuff; |
| 19 | @end |
| 20 | |
| 21 | @implementation b |
| 22 | - (void)processStuff { |
| 23 | f(^(char x) { }); |
| 24 | } |
| 25 | @end |