re PR libstdc++/67374 (std::cbegin can't call valarray range access functions)
[gcc.git] / libstdc++-v3 / testsuite / 26_numerics / valarray / range_access.cc
index eb8ca3e9dbbcd6b079e525fa0fe4129096beecb5..2a929b537ede8baea4ce8789d072ba473d727d55 100644 (file)
@@ -28,4 +28,7 @@ test01()
   std::valarray<double> va{1.0, 2.0, 3.0};
   std::begin(va);
   std::end(va);
+  const auto& cva = va;
+  std::begin(cva);
+  std::end(cva);
 }