xref: /llvm-project/clang/test/Lexer/comment-escape.c (revision 0f1c1be1968076d6f96f8a7bcc4a15cf195ecd97)
1 // RUN: %clang -fsyntax-only -Wdocumentation %s
2 // foo \
3 
4 #define blork 32
5 
6 // GH62054
7 
8 /**<*\
9 /
10 //expected-warning@-2 {{escaped newline between}} \
11 //expected-warning@-2 {{line splicing in Doxygen comments are not supported}}
12 
13 /**<*\
14 /
15 //expected-warning@-2 {{escaped newline between}} \
16 //expected-warning@-2 {{backslash and newline separated by space}} \
17 //expected-warning@-2 {{line splicing in Doxygen comments are not supported}}
18 
19 
20 /*<*\
21 /
22 //expected-warning@-2 {{escaped newline between}}  \
23 //expected-warning@-2 {{line splicing in Doxygen comments are not supported}}
24 
25 /*<*\
26 /
27 //expected-warning@-2 {{escaped newline between}} \
28 //expected-warning@-2 {{backslash and newline separated by space}} \
29 //expected-warning@-2 {{line splicing in Doxygen comments are not supported}}
30 
31 /\
32 *<**/
33 //expected-warning@-2 {{line splicing in Doxygen comments are not supported}}
34 
35 /\
36 /<*
37 //expected-warning@-2 {{line splicing in Doxygen comments are not supported}}
38