2 // { dg-do compile { target c++11 } }
4 template<class T, class U>
5 struct is_same { static constexpr bool value = __is_same(T, U); };
7 #if __cpp_variable_templates
8 template<class T, class U>
9 constexpr bool is_same_v = __is_same(T, U);
13 using A [[gnu::vector_size(16)]] = T;
18 static_assert(!is_same<T, B>::value, "");
19 #if __cpp_variable_templates
20 static_assert(!is_same_v<T, B>, "");
27 static_assert(!is_same<T*, C>::value, "");
28 #if __cpp_variable_templates
29 static_assert(!is_same_v<T*, C>, "");
33 template void f<float>();
34 template void g<float>();