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 5@interface Bar { 6 struct _A *_hardlinkList; 7} 8@end 9@implementation Bar 10typedef struct _A { 11 int dev; 12 int inode; 13} A; 14 15- (void) idx:(int)idx ino:(int)ino dev:(int)dev 16{ 17 _hardlinkList[idx].inode = ino; 18 _hardlinkList[idx].dev = dev; 19} 20@end 21 22