2 // { dg-options "-std=c++0x -Wall" }
4 // We were getting a spurious ||/&& warning about the enable_if with the
5 // source position of d1.
9 { static const bool value = true; };
11 template<bool, typename Tp = void>
16 struct enable_if<true, Tp>
19 template<typename Rep>
24 template<typename Rep2, typename = typename
25 enable_if<false || (true && is_int<Rep2>::value)>::type>
26 duration(const duration<Rep2>&) { }
32 duration<int> d1 = d0; // { dg-warning "set but not used" }