Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
EXTERN_C_OVERLOAD.cpp
Go to the documentation of this file.
1// checking overloading on extern "C"
2
3
25extern "C" {
26
27 typedef int (*pf_t)(void);
28
29 int foo (pf_t f) { return f (); }
30
31 int bar () { return 0; }
32}
33
34extern "C++" {
35
36 int foo (int (*f)(void)) { return f (); }
37
38 int baz () { return 1; }
39
40}
41
42int main ()
43{
44 return !(0 == foo (bar) && 1 == foo (baz));
45}
#define f
Definition 17.names.cpp:119
int(* pf_t)(void)
int baz()
int bar()
int main()
#define foo(buf, s,...)