summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/warn/Winline-1.C
blob: e1a7e832a30a934f974955f6348e423e1734be2d (plain)
1
2
3
4
5
6
7
8
9
10
// { dg-options "-Winline -O2" }

static inline int foo(int x);

int main()
{
  return(foo(17));
}

inline int foo(int x) {  return(x);  }