Index: g++.dg/ext/weak5.C
===================================================================
--- g++.dg/ext/weak5.C	(revision 0)
+++ g++.dg/ext/weak5.C	(working copy)
@@ -0,0 +1,12 @@
+// PR c++/36107
+// { dg-do assemble }
+// { dg-require-weak "" }
+
+class Test {
+  public:
+  Test() __attribute__((weak));
+};
+
+void test() {
+  Test test;
+}
