Files
clang-p2996/lldb/test/lang/cpp/overloaded-functions/main.cpp
Sean Callanan 485f732b84 Fixed a problem where the expression parser would
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
2013-04-24 00:34:41 +00:00

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
}