Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.old-deja/g++.jason/c-inline.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 // { dg-do assemble } |
2 // Bug: the compiler gets hopelessly confused. | |
3 | |
4 #line 1 "c-inline.h" | |
5 #pragma interface | |
6 inline double abs (double) { return 0.0; } | |
7 inline short abs (short) { return 0; } | |
8 #line 2 "c-inline.C" | |
9 extern "C" { | |
10 inline int abs (int) { return 0; } // causes segfault - | |
11 } |