Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/g++.dg/warn/effc1.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
comparison
equal
deleted
inserted
replaced
111:04ced10e8804 | 131:84e7813d76e9 |
---|---|
8 | 8 |
9 class A | 9 class A |
10 { | 10 { |
11 public: | 11 public: |
12 A & operator+=( int ); | 12 A & operator+=( int ); |
13 A & operator+( int ); // { dg-warning ".* should return by value" } | 13 A & operator+( int ); // { dg-warning "7:.A& A::operator\\+\\(int\\). should return by value" } |
14 A operator+=( float ); | 14 A operator+=( float ); |
15 A operator+( float ); | 15 A operator+( float ); |
16 }; | 16 }; |