Blame SOURCES/gcc49-rh1118870.patch

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