aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/tree-prof/lipo/static1_1.C
blob: 0236e16d359cea99ac0cef8cbe6f474d028cd46b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-options "-std=c++11 -O2" } */

#include <vector>

class A {
 public:
  int f(int x) const;
};

static const std::vector<int> point1_{42};

int A::f(int x) const {
  return x+1;
}