xref: /minix3/external/bsd/llvm/dist/clang/test/Index/attributes.c (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc // RUN: c-index-test -test-load-source all %s | FileCheck %s
2*f4a2713aSLionel Sambuc 
3*f4a2713aSLionel Sambuc struct __attribute__((packed)) Test2 {
4*f4a2713aSLionel Sambuc   char a;
5*f4a2713aSLionel Sambuc };
6*f4a2713aSLionel Sambuc 
7*f4a2713aSLionel Sambuc // CHECK: attributes.c:3:32: StructDecl=Test2:3:32 (Definition) Extent=[3:1 - 5:2]
8*f4a2713aSLionel Sambuc // CHECK: attributes.c:3:23: attribute(packed)=packed Extent=[3:23 - 3:29]
9*f4a2713aSLionel Sambuc // CHECK: attributes.c:4:8: FieldDecl=a:4:8 (Definition) Extent=[4:3 - 4:9] [access=public]
10*f4a2713aSLionel Sambuc 
11