/cp
[official-gcc.git] / gcc / testsuite / g++.dg / warn / effc1.C
blob2911451ee6d07f8545f1ed8d9fd48651b0eea1fd
1 // { dg-options -Weffc++ }
2 // { dg-do compile }
4 // Copyright (C) 2001 Free Software Foundation, Inc.
5 // Contributed by Nathan Sidwell 26 Apr 2002 <nathan@codesourcery.com>
7 // Bug 5719 
9 class A
11   public:
12   A & operator+=( int );
13   A & operator+( int );  // { dg-warning "7:.A& A::operator\\+\\(int\\). should return by value" }
14   A operator+=( float );
15   A operator+( float );