blob: 7963c9e8ab5091c23d6268b19609666a1416865e [file] [log] [blame]
// 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;
}