Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/warn/Wunused-4.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
// { dg-do compile } // { dg-options "-Wunused-parameter" } // Copyright (C) 2003 Free Software Foundation, Inc. // Contributed by Nathan Sidwell 15 Sep 2003 <nathan@codesourcery.com> // Origin: yotamm@mellanox.co.il // PR c++/9848. Missing warning struct C1 { // Only use in-charge ctor C1(int bi) {} // { dg-warning "unused parameter" } }; struct C2 { // Only use base ctor C2(int bi) {} // { dg-warning "unused parameter" } }; struct D : C2 { D (int) : C2 (1) {} }; void show_compile_warning () { C1 c1 (1); D d (1); }