| 1 |
// { dg-do compile } |
| 2 |
|
| 3 |
// Check that an appropriate diagnostic is emitted when a dispatch directive |
| 4 |
// appears in a pragma_member context. |
| 5 |
|
| 6 |
void k(); |
| 7 |
struct t { |
| 8 |
#pragma omp dispatch // { dg-error "expected declaration specifiers before end of line" } |
| 9 |
k(); // { dg-error ".*" } |
| 10 |
}; |