not find multiple functions with the same name but different types. Now we keep track of what types we've already reported for a function and only elide functions if we've already reported a conflicting one. Also added a test case. <rdar://problem/11367837> llvm-svn: 180167
44 lines
410 B
C++
44 lines
410 B
C++
#include <stdio.h>
|
|
|
|
struct A {
|
|
int aa;
|
|
char ab;
|
|
};
|
|
|
|
struct B {
|
|
int ba;
|
|
int bb;
|
|
};
|
|
|
|
struct C {
|
|
int ca;
|
|
int cb;
|
|
};
|
|
|
|
int Dump (A &a)
|
|
{
|
|
return 1;
|
|
}
|
|
|
|
int Dump (B &b)
|
|
{
|
|
return 2;
|
|
}
|
|
|
|
int Dump (C &c)
|
|
{
|
|
return 3;
|
|
}
|
|
|
|
extern int CallStaticA();
|
|
extern int CallStaticB();
|
|
|
|
int main()
|
|
{
|
|
A myA;
|
|
B myB;
|
|
C myC;
|
|
|
|
printf("%d\n", CallStaticA() + CallStaticB()); // breakpoint
|
|
}
|