summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/inline7.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.other/inline7.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.other/inline7.C18
1 files changed, 18 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.other/inline7.C b/gcc/testsuite/g++.old-deja/g++.other/inline7.C
new file mode 100644
index 000000000..a3723cfba
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.other/inline7.C
@@ -0,0 +1,18 @@
+// { dg-do run }
+// { dg-options "-O2" }
+// Origin: Mark Mitchell <mark@codesourcery.com>
+
+#include <list>
+
+std::list<int*> li;
+
+void f ()
+{
+ li.size ();
+}
+
+int main ()
+{
+ li.push_back (0);
+ f ();
+}