summaryrefslogtreecommitdiffstats
path: root/clang/test/Index/attributes.c
diff options
context:
space:
mode:
authorJoey Gouly <joey.gouly@gmail.com>2014-05-01 15:41:58 +0000
committerJoey Gouly <joey.gouly@gmail.com>2014-05-01 15:41:58 +0000
commit81228382cf059cab0205b30b817299622ce3110a (patch)
treefafa754be00d3d371d959c79e5b813dc5b3deb69 /clang/test/Index/attributes.c
parentd6459e5c43c5d6e3820bc6c976dc1f1a5cfceab5 (diff)
downloadbcm5719-llvm-81228382cf059cab0205b30b817299622ce3110a.tar.gz
bcm5719-llvm-81228382cf059cab0205b30b817299622ce3110a.zip
[libclang] Add attribute support for 'pure', 'const' and 'noduplicate'.
This bumps CINDEX_VERSION_MINOR up (to 26). llvm-svn: 207767
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
index 3e60e6c0e49..95d9c7548bd 100644
--- a/clang/test/Index/attributes.c
+++ b/clang/test/Index/attributes.c
@@ -4,7 +4,17 @@ struct __attribute__((packed)) Test2 {
char a;
};
+void pure_fn() __attribute__((pure));
+void const_fn() __attribute__((const));
+void noduplicate_fn() __attribute__((noduplicate));
+
// 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]
+// CHECK: attributes.c:7:6: FunctionDecl=pure_fn:7:6 Extent=[7:1 - 7:37]
+// CHECK: attributes.c:7:31: attribute(pure)= Extent=[7:31 - 7:35]
+// CHECK: attributes.c:8:6: FunctionDecl=const_fn:8:6 Extent=[8:1 - 8:39]
+// CHECK: attributes.c:8:32: attribute(const)= Extent=[8:32 - 8:37]
+// CHECK: attributes.c:9:6: FunctionDecl=noduplicate_fn:9:6 Extent=[9:1 - 9:51]
+// CHECK: attributes.c:9:38: attribute(noduplicate)= Extent=[9:38 - 9:49]
OpenPOWER on IntegriCloud