re PR testsuite/31884 (priority_queue_dijkstra.cc operates on deallocated memory)
[gcc.git] / libstdc++-v3 / testsuite / tr1 / 5_numerical_facilities / random / subtract_with_carry / cons / gen1.cc
index cacde1b8e36d58a51bdafdb43a90c915c7efaf9b..ef583dda3410d65ad05cb49750cef3ba132d85c1 100644 (file)
@@ -21,6 +21,8 @@
 // 5.1.4.3 class template subtract_with_carry [tr.rand.eng.sub]
 // 5.1.1 Table 16 line 3 Gen ctor
 
+// { dg-require-time "" }
+
 #include <ctime>
 #include <tr1/random>
 #include <testsuite_hooks.h>
@@ -40,7 +42,7 @@ test01()
 
   subtract_with_carry<unsigned long, (1UL << 24), 10, 24> x(gen);
   VERIFY( x.min() == 0 );
-  VERIFY( x.max() == ((1 << 24) - 1) );
+  VERIFY( x.max() == ((1UL << 24) - 1) );
 }
 
 int main()