1// RUN: %clang_cc1 -x objective-c -fsyntax-only -verify -Wno-objc-root-class %s 2// RUN: %clang_cc1 -x objective-c++ -fsyntax-only -verify -Wno-objc-root-class %s 3// expected-no-diagnostics 4// rdar://10041908 5 6@interface Bar { 7 struct _A *_hardlinkList; 8} 9@end 10@implementation Bar 11typedef struct _A { 12 int dev; 13 int inode; 14} A; 15 16- (void) idx:(int)idx ino:(int)ino dev:(int)dev 17{ 18 _hardlinkList[idx].inode = ino; 19 _hardlinkList[idx].dev = dev; 20} 21@end 22 23