Blame SOURCES/gcc7-rh1118870.patch

821dce
2014-07-23  Jonathan Wakely  <jwakely@redhat.com>
821dce
821dce
	* testsuite/30_threads/condition_variable_any/rh1118870.cc: New test.
821dce
821dce
--- libstdc++-v3/testsuite/30_threads/condition_variable_any/rh1118870.cc
821dce
+++ libstdc++-v3/testsuite/30_threads/condition_variable_any/rh1118870.cc
821dce
@@ -0,0 +1,13 @@
821dce
+// { dg-options " -std=gnu++11 -pthread" }
821dce
+#include <condition_variable>
821dce
+#include <cstring>
821dce
+
821dce
+int main()
821dce
+{
821dce
+  const size_t sz = sizeof(std::condition_variable_any);
821dce
+  char garbage[sz];
821dce
+  memset(garbage, 0xff, sz);
821dce
+  auto cond = new ((void*)garbage) std::condition_variable_any();
821dce
+  cond->notify_all();
821dce
+  cond->~condition_variable_any();
821dce
+}