* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / static_assert13.C
blob7332ff91882c1b29e73013cc5c227185952eb04c
1 // { dg-do compile }
2 // { dg-options "-std=gnu++11" }
4 template<typename T>
5   struct is_float
6   {
7     static constexpr bool value = false;
8   };
10 template<>
11   struct is_float<float>
12   {
13     static constexpr bool value = true;
14   };
16 template<typename T>
17   void
18   float_thing(T __x)
19   {
20     static_assert(is_float<T>::value, ""); // { dg-error "static assertion failed" }
21     static_assert(is_float<T>::value); // { dg-error "static assertion failed" }
22   }
24 int
25 main()
27   float_thing(1);