PR lto/84212 - -Wno-* does not disable warnings from -flto link stage
[official-gcc.git] / gcc / testsuite / g++.dg / warn / Wduplicated-branches2.C
blob7e14c5fb6cd62dfd33e1b5c851085ef0c665a467
1 // PR c/64279
2 // { dg-do compile { target c++11 } }
3 // { dg-options "-Wduplicated-branches" }
5 template<typename _ITp>
6 struct S {
7   static constexpr int i = sizeof(_ITp) > alignof(_ITp) ? sizeof(_ITp) : alignof(_ITp);
8 };