Blame SOURCES/gcc6-rh1118870.patch

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