Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/warn/Wunused-17.C @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
// PR c++/41109, 41110, 41134 // { dg-options "-Wunused" } int memory_consumption(const int &t) { return sizeof(t); } int s; int g() { return memory_consumption(s); } template <int> struct X { static const int s = 2; }; template <typename T> int f() { const unsigned int dim = 2; return X<dim>::s; } template int f<int>(); static int i; template <typename> int h() { return i; }