Home | History | Annotate | Download | only in overloaded-functions
      1 #include <stdio.h>
      2 
      3 struct A {
      4     int aa;
      5     char ab;
      6 };
      7 
      8 struct B {
      9     int ba;
     10     int bb;
     11 };
     12 
     13 struct C {
     14     int ca;
     15     int cb;
     16 };
     17 
     18 int Dump (A &a)
     19 {
     20     return 1;
     21 }
     22 
     23 int Dump (B &b)
     24 {
     25     return 2;
     26 }
     27 
     28 int Dump (C &c)
     29 {
     30     return 3;
     31 }
     32 
     33 extern int CallStaticA();
     34 extern int CallStaticB();
     35 
     36 int main()
     37 {
     38     A myA;
     39     B myB;
     40     C myC;
     41 
     42     printf("%d\n", CallStaticA() + CallStaticB()); // breakpoint
     43 }
     44