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)
llvm-svn: 164961

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

index 94cbc9a..20ce012 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 1166e78..dad6c8a 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