Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/g++.old-deja/g++.brendan/crash55.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 |
---|---|
2 // GROUPS passed old-abort | 2 // GROUPS passed old-abort |
3 extern int f(int); // { dg-message "old declaration" } | 3 extern int f(int); // { dg-message "old declaration" } |
4 | 4 |
5 int& f(int x) // { dg-error "new declaration" } | 5 int& f(int x) // { dg-error "new declaration" } |
6 { | 6 { |
7 int local; // { dg-warning "reference to local" } | 7 int local; |
8 | 8 |
9 local = x+2; | 9 local = x+2; |
10 | 10 |
11 return local; | 11 return local; // { dg-warning "reference to local" } |
12 } | 12 } |