Fortran: Fix PR 47485.
[gcc.git] / gcc / testsuite / g++.dg / warn / Wlogical-op-2.C
blob755db08e7fb116f035dc02257232994900799fc1
1 // PR c++/66572
2 // { dg-do compile { target c++11 } }
3 // { dg-options "-Wlogical-op" }
5 struct false_type
7     static constexpr bool value = false;
8 };
10 struct true_type
12     static constexpr bool value = true;
15 template<typename T>
16 struct is_unsigned : false_type {};
18 template<>
19 struct is_unsigned<unsigned> : true_type {};
21 template<typename T1, typename T2>
22 bool foo()
24     return is_unsigned<T1>::value && is_unsigned<T2>::value;
27 int main()
29     foo<unsigned, unsigned>();