blob: 7051ac689cc024a27827cae01d9e0c20f9140980 [file] [log] [blame]
// RUN: %clang_cc1 -x objective-c -fsyntax-only -verify -Wno-objc-root-class %s
// RUN: %clang_cc1 -x objective-c++ -fsyntax-only -verify -Wno-objc-root-class %s
// expected-no-diagnostics
// rdar://10041908
@interface Bar {
struct _A *_hardlinkList;
}
@end
@implementation Bar
typedef struct _A {
int dev;
int inode;
} A;
- (void) idx:(int)idx ino:(int)ino dev:(int)dev
{
_hardlinkList[idx].inode = ino;
_hardlinkList[idx].dev = dev;
}
@end