Fariborz Jahanian | 43cb9a0 | 2009-12-14 17:47:10 +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 | |