OSDN Git Service

Initial revision
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.law / inline6.C
1 // Build don't link: 
2 // GROUPS passed inlining
3 // inline file
4 // Message-Id: <199307162240.AA04019@world.std.com>
5 // From: kol@world.std.com (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 };