| 1 | // RUN: %clang_cc1 -rewrite-objc -fobjc-runtime=macosx-fragile-10.5 %s -o - |
|---|---|
| 2 | |
| 3 | @interface MyDerived |
| 4 | { |
| 5 | @public |
| 6 | int IVAR; |
| 7 | } |
| 8 | @end |
| 9 | |
| 10 | MyDerived *pd; |
| 11 | int main() { |
| 12 | return pd->IVAR; |
| 13 | } |
| 14 | |
| 15 | |
| 16 |
| 1 | // RUN: %clang_cc1 -rewrite-objc -fobjc-runtime=macosx-fragile-10.5 %s -o - |
|---|---|
| 2 | |
| 3 | @interface MyDerived |
| 4 | { |
| 5 | @public |
| 6 | int IVAR; |
| 7 | } |
| 8 | @end |
| 9 | |
| 10 | MyDerived *pd; |
| 11 | int main() { |
| 12 | return pd->IVAR; |
| 13 | } |
| 14 | |
| 15 | |
| 16 |