diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2013-12-22 00:07:40 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2013-12-22 00:07:40 +0000 |
commit | bfef399519ca9b8a4b4c6b563253bad7e0eeffe0 (patch) | |
tree | df8df0b0067b381eab470a3b8f28d14a552a6340 /test/Index/attributes.c | |
parent | 6a0372513edbc473b538d2f724efac50405d6fef (diff) |
Diffstat (limited to 'test/Index/attributes.c')
-rw-r--r-- | test/Index/attributes.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Index/attributes.c b/test/Index/attributes.c new file mode 100644 index 000000000000..3e60e6c0e495 --- /dev/null +++ b/test/Index/attributes.c @@ -0,0 +1,10 @@ +// RUN: c-index-test -test-load-source all %s | FileCheck %s + +struct __attribute__((packed)) Test2 { + char a; +}; + +// CHECK: attributes.c:3:32: StructDecl=Test2:3:32 (Definition) Extent=[3:1 - 5:2] +// CHECK: attributes.c:3:23: attribute(packed)=packed Extent=[3:23 - 3:29] +// CHECK: attributes.c:4:8: FieldDecl=a:4:8 (Definition) Extent=[4:3 - 4:9] [access=public] + |