Blame SOURCES/gcc7-rh1118870.patch

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