// RUN: %clang_cc1 -fsyntax-only -verify %s // expected-no-diagnostics template struct X { static const int value = 0; }; template struct X { static const int value = 1; }; template struct X { static const int value = 2; }; int array0[X<0, 0, float>::value == 0? 1 : -1]; int array1[X<0, 1, int>::value == 1? 1 : -1]; int array2[X<0, 0, int>::value == 2? 1 : -1]; namespace DependentSubstPartialOrdering { template struct X { static const unsigned value = 1; }; template struct X { static const unsigned value = 2; }; template struct X { static const unsigned value = 3; }; struct X1 { }; struct X2 { typedef void is_b; }; struct X3 { typedef void is_a; typedef void is_b; }; int check_X1[X::value == 1? 1 : -1]; int check_X2[X::value == 2? 1 : -1]; int check_X3[X::value == 3? 1 : -1]; }