1 // RUN: %clang_cc1 -fsyntax-only -Wdocumentation -verify %s
8 /** @return s1 Test 1*/
12 /** @return s2 Test 2*/
16 // expected-warning@+1 {{'@return' command used in a comment that is not attached to a function or method declaration}}
17 /** @return s3 Test 3 - expected warning here */
21 /** @return s4 Test 4 */
23 struct s4
{ int is
; };
25 // expected-warning@+1 {{'@return' command used in a comment that is not attached to a function or method declaration}}
26 /** @return s5 Test 5 - expected warning here */
27 struct s5
{ int is
; };
30 // expected-warning@+1 {{'@return' command used in a comment that is not attached to a function or method declaration}}
31 /** @return s6 Test 6 - expected warning here */
35 // expected-warning@+1 {{'@return' command used in a comment that is not attached to a function or method declaration}}
36 /** @return s7 Test 7 - expected warning here */
40 struct s8
{ int is8
; };
41 /** @return s8 Test 8 */
42 struct s4
*f8(struct s8
*p
);
50 /** @return e1 Test 1*/
54 /** @return e2 Test 2*/
58 // expected-warning@+1 {{'@return' command used in a comment that is not attached to a function or method declaration}}
59 /** @return e3 Test 3 - expected warning here */
63 /** @return e4 Test 4 */
67 // expected-warning@+1 {{'@return' command used in a comment that is not attached to a function or method declaration}}
68 /** @return e5 Test 5 - expected warning here */
72 // expected-warning@+1 {{'@return' command used in a comment that is not attached to a function or method declaration}}
73 /** @return e6 Test 6 - expected warning here */
77 // expected-warning@+1 {{'@return' command used in a comment that is not attached to a function or method declaration}}
78 /** @return e7 Test 7 - expected warning here */
83 /** @return e8 Test 8 */
84 enum e4
*g8(enum e8
*p
);