Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
EXTERN_C_COMPATIBILITY.cpp
Go to the documentation of this file.
1// checking for compatibility of extern "C" and "C++"
2
3
25extern "C" {
26 typedef int (*ext_c_fun)();
27
28 int foo (int (*pf)()) { return pf (); }
29}
30
31extern "C++" {
32 int bar () { return 0; }
33}
34
35int main ()
36{
37 return !(0 == foo ((ext_c_fun)bar));
38}
#define pf
Definition 17.names.cpp:516
int(* ext_c_fun)()
#define foo(buf, s,...)