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