summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/c-inline.C
blob: c16fbde7dd3181e4d4f506c1a44b4d06baaf1ce1 (plain)
1
2
3
4
5
6
7
8
9
10
11
// { dg-do assemble  }
// Bug: the compiler gets hopelessly confused.

#line 1 "c-inline.h"
#pragma interface
inline double abs (double) { return 0.0; }
inline short abs (short) { return 0; }
#line 2 "c-inline.C"
extern "C" {
  inline int abs (int) { return 0; } // causes segfault - 
}