OSDN Git Service

2010-11-02 Paolo Carlini <paolo.carlini@oracle.com
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / testsuite / 20_util / time_point / requirements / constexpr_functions.cc
index feb77fb..2beccd4 100644 (file)
@@ -33,11 +33,14 @@ namespace __gnu_test
        {
          void __constraint()
          {
-           constexpr auto v1(_Ttesttype::min());
-           constexpr auto v2(_Ttesttype::max());
+           constexpr auto v1 __attribute__((unused))
+             = _Ttesttype::min();
+           constexpr auto v2 __attribute__((unused))
+             = _Ttesttype::max();
 
            constexpr _Ttesttype obj;
-           constexpr auto v3 = obj.time_since_epoch();
+           constexpr auto v3 __attribute__((unused))
+             = obj.time_since_epoch();
          }
        };