Fortran: Fix PR 47485.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / pr107065.C
blob5e18bb91cff77e879669ac329e0b0d3a8e224ed7
1 // PR c++/107065
2 // { dg-do compile { target c++11 } }
4 template<class, class> struct is_same { static constexpr bool value = false; };
5 template<class T> struct is_same<T, T> { static constexpr bool value = true; };
7 int
8 main ()
10   bool b = true;
11   static_assert (is_same<decltype (!(!b)), bool>::value, "");
12   auto bb = (!(!b));
13   static_assert (is_same<decltype (bb), bool>::value, "");