1 // RUN: %clang_cc1 -fsyntax-only -Wdocumentation -verify %s
9 /** @return s1 Test 1*/
13 /** @return s2 Test 2*/
17 // expected-warning@+1 {{'@return' command used in a comment that is not attached to a function or method declaration}}
18 /** @return s3 Test 3 - expected warning here */
22 /** @return s4 Test 4 */
24 struct s4
{ int is
; };
26 // expected-warning@+1 {{'@return' command used in a comment that is not attached to a function or method declaration}}
27 /** @return s5 Test 5 - expected warning here */
28 struct s5
{ int is
; };
31 // expected-warning@+1 {{'@return' command used in a comment that is not attached to a function or method declaration}}
32 /** @return s6 Test 6 - expected warning here */
36 // expected-warning@+1 {{'@return' command used in a comment that is not attached to a function or method declaration}}
37 /** @return s7 Test 7 - expected warning here */
41 struct s8
{ int is8
; };
42 /** @return s8 Test 8 */
43 struct s4
*f8(struct s8
*p
);
51 /** @return e1 Test 1*/
55 /** @return e2 Test 2*/
59 // expected-warning@+1 {{'@return' command used in a comment that is not attached to a function or method declaration}}
60 /** @return e3 Test 3 - expected warning here */
64 /** @return e4 Test 4 */
68 // expected-warning@+1 {{'@return' command used in a comment that is not attached to a function or method declaration}}
69 /** @return e5 Test 5 - expected warning here */
73 // expected-warning@+1 {{'@return' command used in a comment that is not attached to a function or method declaration}}
74 /** @return e6 Test 6 - expected warning here */
78 // expected-warning@+1 {{'@return' command used in a comment that is not attached to a function or method declaration}}
79 /** @return e7 Test 7 - expected warning here */
84 /** @return e8 Test 8 */
85 enum e4
*g8(enum e8
*p
);