Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/warn/Wduplicated-branches4.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | |
children |
line wrap: on
line source
// PR c++/82541 // { dg-do compile } // { dg-options "-Wduplicated-branches" } template<int N> struct AR { char a1[N > 0 ? N : 1]; // { dg-bogus "this condition has identical branches" } char a2[N > 0 ? 1 : 1]; // { dg-warning "this condition has identical branches" } }; int main () { AR<1> w; }