diff options
Diffstat (limited to 'clang/test/Index/special-html-characters.m')
| -rw-r--r-- | clang/test/Index/special-html-characters.m | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/clang/test/Index/special-html-characters.m b/clang/test/Index/special-html-characters.m new file mode 100644 index 00000000000..74106f372bb --- /dev/null +++ b/clang/test/Index/special-html-characters.m @@ -0,0 +1,28 @@ +// RUN: rm -rf %t +// RUN: mkdir %t +// RUN: c-index-test -test-load-source all -comments-xml-schema=%S/../../bindings/xml/comment-xml-schema.rng -triple x86_64-apple-darwin10 %s > %t/out +// RUN: FileCheck %s < %t/out +// rdar://13067629 + +// Ensure that XML we generate is not invalid. +// RUN: FileCheck %s -check-prefix=WRONG < %t/out +// WRONG-NOT: CommentXMLInvalid + +// rdar://12392215 +@interface I +@end + +@implementation I +/*! + © the copyright symbol + ™ the trade mark symbol + ® the registered trade mark symbol + a non breakable space. + Δ Greek letter Delta Δ. + Γ Greek letter Gamma Γ. + */ +- (void)phoneHome:(id)sender { + +} +@end +// CHECK: FullCommentAsHTML=[<p class="para-brief">\t© the copyright symbol\t™ the trade mark symbol ® the registered trade mark symbol\t a non breakable space. Δ Greek letter Delta Δ. Γ Greek letter Gamma Γ. </p>] FullCommentAsXML=[<Function isInstanceMethod="1" file="{{[^"]+}}special-html-characters.m" line="[[@LINE-4]]" column="1"><Name>phoneHome:</Name><USR>c:objc(cs)I(im)phoneHome:</USR><Declaration>- (void)phoneHome:(id)sender;</Declaration><Abstract><Para>\t© the copyright symbol\t™ the trade mark symbol ® the registered trade mark symbol\t a non breakable space. Δ Greek letter Delta Δ. Γ Greek letter Gamma Γ. </Para></Abstract></Function>] |

