// RUN: clang-cc -fsyntax-only -verify %s template struct is_pointer { static const bool value = false; }; template struct is_pointer { static const bool value = true; }; template struct is_pointer { static const bool value = true; }; int array0[is_pointer::value? -1 : 1]; int array1[is_pointer::value? 1 : -1]; int array2[is_pointer::value? 1 : -1]; // expected-error{{partial ordering}} \ // expected-error{{negative}} template struct is_lvalue_reference { static const bool value = false; }; template struct is_lvalue_reference { static const bool value = true; }; int lvalue_ref0[is_lvalue_reference::value? -1 : 1]; int lvalue_ref1[is_lvalue_reference::value? 1 : -1]; template struct is_same { static const bool value = false; }; template struct is_same { static const bool value = true; }; typedef int INT; typedef INT* int_ptr; int is_same0[is_same::value? 1 : -1]; int is_same1[is_same::value? 1 : -1]; int is_same2[is_same::value? -1 : 1]; int is_same3[is_same::value? -1 : 1]; template struct remove_reference { typedef T type; }; template struct remove_reference { typedef T type; }; int remove_ref0[is_same::type, int>::value? 1 : -1]; int remove_ref1[is_same::type, int>::value? 1 : -1]; template struct is_incomplete_array { static const bool value = false; }; template struct is_incomplete_array { static const bool value = true; }; int incomplete_array0[is_incomplete_array::value ? -1 : 1]; int incomplete_array1[is_incomplete_array::value ? -1 : 1]; int incomplete_array2[is_incomplete_array::value ? 1 : -1]; int incomplete_array3[is_incomplete_array::value ? 1 : -1]; template struct is_array_with_4_elements { static const bool value = false; }; template struct is_array_with_4_elements { static const bool value = true; }; int array_with_4_elements0[is_array_with_4_elements::value ? -1 : 1]; int array_with_4_elements1[is_array_with_4_elements::value ? -1 : 1]; int array_with_4_elements2[is_array_with_4_elements::value ? 1 : -1]; int array_with_4_elements3[is_array_with_4_elements::value ? 1 : -1]; template struct get_array_size; template struct get_array_size { static const unsigned value = N; }; int array_size0[get_array_size::value == 12? 1 : -1];