| 1 |
// { dg-additional-options "-fsyntax-only -w" } |
| 2 |
|
| 3 |
// check error for a bad overload of operator delete. |
| 4 |
|
| 5 |
#define BOGUS_OPDEL_CASE1 |
| 6 |
#include "coro1-allocators.h" |
| 7 |
|
| 8 |
struct coro1 |
| 9 |
f () /* { dg-error {no suitable 'operator delete' for.*promise_type.*} } */ |
| 10 |
{ |
| 11 |
co_return; |
| 12 |
} |
| 13 |
|