| // RUN: %clang_cc1 -fsyntax-only -Wdocumentation -verify %s |
| // expected-warning@+1 {{'@return' command used in a comment that is not attached to a function or method declaration}} |
| /** @return s3 Test 3 - expected warning here */ |
| // expected-warning@+1 {{'@return' command used in a comment that is not attached to a function or method declaration}} |
| /** @return s5 Test 5 - expected warning here */ |
| // expected-warning@+1 {{'@return' command used in a comment that is not attached to a function or method declaration}} |
| /** @return s6 Test 6 - expected warning here */ |
| // expected-warning@+1 {{'@return' command used in a comment that is not attached to a function or method declaration}} |
| /** @return s7 Test 7 - expected warning here */ |
| struct s4 *f8(struct s8 *p); |
| // expected-warning@+1 {{'@return' command used in a comment that is not attached to a function or method declaration}} |
| /** @return e3 Test 3 - expected warning here */ |
| // expected-warning@+1 {{'@return' command used in a comment that is not attached to a function or method declaration}} |
| /** @return e5 Test 5 - expected warning here */ |
| // expected-warning@+1 {{'@return' command used in a comment that is not attached to a function or method declaration}} |
| /** @return e6 Test 6 - expected warning here */ |
| // expected-warning@+1 {{'@return' command used in a comment that is not attached to a function or method declaration}} |
| /** @return e7 Test 7 - expected warning here */ |