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