Blame SOURCES/gcc7-rh1118870.patch

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