Blame SOURCES/gcc6-rh1118870.patch

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