Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/g++.dg/warn/Wshadow-5.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 |
---|---|
1 // Wshadows was giving warnings for nested function parameters in nested class | 1 // Wshadows was giving warnings for nested function parameters in nested class |
2 // or structure that we didn't want. | 2 // or structure that we didn't want. |
3 // { dg-do compile } | 3 // { dg-do compile } |
4 // { dg-options "-Wshadow" } | 4 // { dg-options "-Wshadow -Wno-return-type" } |
5 | 5 |
6 // PR c++/41825 | 6 // PR c++/41825 |
7 int f (int n) | 7 int f (int n) |
8 { | 8 { |
9 int bar (int n) { return n++; } // { dg-error "a function-definition is not allowed here" } | 9 int bar (int n) { return n++; } // { dg-error "a function-definition is not allowed here" } |