Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/g++.dg/plugin/self-assign-test-2.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 |
---|---|
24 }; | 24 }; |
25 | 25 |
26 int g = g; // { dg-warning "assigned to itself" } | 26 int g = g; // { dg-warning "assigned to itself" } |
27 Foo foo = foo; // { dg-warning "assigned to itself" } | 27 Foo foo = foo; // { dg-warning "assigned to itself" } |
28 | 28 |
29 int func() | 29 void func() |
30 { | 30 { |
31 Bar *bar1, bar2; | 31 Bar *bar1, bar2; |
32 Foo local_foo; | 32 Foo local_foo; |
33 int x = x; // { dg-warning "assigned to itself" } | 33 int x = x; // { dg-warning "assigned to itself" } |
34 static int y = y; // { dg-warning "assigned to itself" } | 34 static int y = y; // { dg-warning "assigned to itself" } |