]> granicus.if.org Git - clang/commitdiff
Add xml test for availability to comment-xml-schema.c
authorFariborz Jahanian <fjahanian@apple.com>
Mon, 1 Oct 2012 19:10:40 +0000 (19:10 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Mon, 1 Oct 2012 19:10:40 +0000 (19:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164961 91177308-0d34-0410-b5e6-96231b3b80d8

test/Index/Inputs/CommentXML/valid-availability-attr-01.xml
test/Index/comment-xml-schema.c

index 94cbc9a00fc4ba4edb3127b38edafa8195c25663..20ce01229ec70c4167a6ed02a9c0c1eef33fdb86 100644 (file)
@@ -1,7 +1,11 @@
 <?xml version="1.0" encoding="utf-8"?>
+<Function>
+<Name>aaa</Name>
+<Abstract><Para>Aaa.</Para></Abstract>
 <Availability distribution="OS X">
   <IntroducedInVersion>8.0</IntroducedInVersion>
   <DeprecatedInVersion>9.0</DeprecatedInVersion>
-  <RemovedAfterVersion>10.0</RemovedAfterVersion> 
+  <RemovedAfterVersion>10.0</RemovedAfterVersion>
   <DeprecationSummary>use availability_test</DeprecationSummary>
 </Availability>
+</Function>
index 1166e78f577e2b29d3b752d22629efb6d85d65c0..dad6c8a6948a26df8eaed2a1aa56f29a7cd62334 100644 (file)
@@ -12,6 +12,8 @@
 // RUN: xmllint --noout --relaxng %S/../../bindings/xml/comment-xml-schema.rng %S/Inputs/CommentXML/valid-function-08.xml
 // RUN: xmllint --noout --relaxng %S/../../bindings/xml/comment-xml-schema.rng %S/Inputs/CommentXML/valid-function-09.xml
 //
+// RUN: xmllint --noout --relaxng %S/../../bindings/xml/comment-xml-schema.rng %S/Inputs/CommentXML/valid-availability-attr-01.xml
+//
 // RUN: xmllint --noout --relaxng %S/../../bindings/xml/comment-xml-schema.rng %S/Inputs/CommentXML/valid-class-01.xml
 // RUN: xmllint --noout --relaxng %S/../../bindings/xml/comment-xml-schema.rng %S/Inputs/CommentXML/valid-class-02.xml
 // RUN: xmllint --noout --relaxng %S/../../bindings/xml/comment-xml-schema.rng %S/Inputs/CommentXML/valid-class-03.xml