blob: cc46e01d778692749072c7346d736f53c5b80152 [file] [log] [blame]
// { dg-additional-options "-fsyntax-only -w" }
#include "coro.h"
struct Foo {
Foo () { co_yield 4; } // { dg-error "cannot be used in a constructor" }
~Foo () { co_yield 4; } // { dg-error "cannot be used in a destructor" }
};