blob: 2911451ee6d07f8545f1ed8d9fd48651b0eea1fd [file] [log] [blame]
// { dg-options -Weffc++ }
// { dg-do compile }
// Copyright (C) 2001 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 26 Apr 2002 <nathan@codesourcery.com>
// Bug 5719
class A
{
public:
A & operator+=( int );
A & operator+( int ); // { dg-warning "7:.A& A::operator\\+\\(int\\). should return by value" }
A operator+=( float );
A operator+( float );
};