summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/inline7.C
blob: a3723cfba1e916fed16c0ce0433516ff49aded15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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 ();
}