summaryrefslogtreecommitdiffstats
path: root/test/SemaObjC/nested-typedef-decl.m
blob: 7051ac689cc024a27827cae01d9e0c20f9140980 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// 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