blob: 42852a7055847ee27ab2c1a2b8e4c321734088aa [file] [log] [blame]
// PR c++/94492
// { dg-additional-options -Wdeprecated-copy }
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-copy"
struct expr
{
int a, b;
expr& operator=(const expr&) { return *this; }
};
#pragma GCC diagnostic pop
expr foo(expr e)
{
return e;
}