Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.law/inline6.C

raw
1 // { dg-do assemble }
2 // GROUPS passed inlining
3 // inline file
4 // Message-Id: <[email protected]>
5 // From: [email protected] (Nikolay Yatsenko)
6 // Subject: g++ bug: crash with extern C friend
7 // Date: Fri, 16 Jul 1993 18:40:48 -0400
8
9 inline void Ignore(){}
10
11 extern "C" void foo() {} // but without extern C g++ compiles it
12
13 struct A
14 {
15 void f() {Ignore();}
16 friend void foo ();
17 };