Debian Codegraph @

gcc/testsuite/g++.dg/warn/Wduplicated-branches5.C

raw
1 // PR c++/83924
2 // { dg-do compile { target c++11 } }
3 // { dg-options "-Wduplicated-branches" }
4
5 class GenVectorS {};
6
7 template<int N>
8 using VectorS = GenVectorS;
9
10 template<int n, int m>
11 void runB(const VectorS<(n > m ? n : m)>)
12 {}
13
14 void runA() {
15 runB<1, 1>(VectorS<1>{});
16 }