summaryrefslogtreecommitdiffstats
path: root/clang/test/Index/attributes.c
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2013-10-07 16:38:40 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2013-10-07 16:38:40 +0000
commitfe04fe0d41963735c8065eb2f547a3a08ef81810 (patch)
treefa20ecbe6b5899a3323da138b2aac57efe14e8dc /clang/test/Index/attributes.c
parentb6ceeb9126187c29ee9b0b6912b9e6214a1e8919 (diff)
downloadbcm5719-llvm-fe04fe0d41963735c8065eb2f547a3a08ef81810.tar.gz
bcm5719-llvm-fe04fe0d41963735c8065eb2f547a3a08ef81810.zip
[libclang] Add some tests by Loïc Jaquemet that I forgot to add earlier.
llvm-svn: 192108
Diffstat (limited to 'clang/test/Index/attributes.c')
-rw-r--r--clang/test/Index/attributes.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/test/Index/attributes.c b/clang/test/Index/attributes.c
new file mode 100644
index 00000000000..3e60e6c0e49
--- /dev/null
+++ b/clang/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]
+
OpenPOWER on IntegriCloud