Chris Lattner | 9ed7cfd | 2008-05-23 23:06:56 +0000 | [diff] [blame^] | 1 | // RUN: clang -rewrite-objc %s -o =- |
| 2 | |
| 3 | #include <objc/objc.h> |
| 4 | |
| 5 | @interface NSMapTable @end |
| 6 | @interface NSEnumerator @end |
| 7 | |
| 8 | typedef unsigned int NSUInteger; |
| 9 | |
| 10 | @interface NSConcreteMapTable : NSMapTable { |
| 11 | @public |
| 12 | NSUInteger capacity; |
| 13 | } |
| 14 | @end |
| 15 | |
| 16 | @interface NSConcreteMapTableValueEnumerator : NSEnumerator { |
| 17 | NSConcreteMapTable *mapTable; |
| 18 | } |
| 19 | @end |
| 20 | |
| 21 | @implementation NSConcreteMapTableValueEnumerator |
| 22 | |
| 23 | - nextObject { |
| 24 | while (mapTable->capacity) { |
| 25 | } |
| 26 | return 0; |
| 27 | } |
| 28 | @end |
| 29 | |