mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-21 20:45:53 -04:00

There's a bug in FindTypes, it ignores the exact flag if you pass a name that doesn't begin with :: and pass eTypeClassAny for the type. In this case we always know that the name we get from the vtable name is absolute so we can work around the bug by prepending the "::". This doesn't fix the FindTypes bug. <rdar://problem/38010986> llvm-svn: 326412
33 lines
449 B
C++
33 lines
449 B
C++
#include <stdio.h>
|
|
|
|
namespace namesp
|
|
{
|
|
class Virtual {
|
|
public:
|
|
virtual void doSomething() {
|
|
printf ("namesp function did something.\n");
|
|
}
|
|
};
|
|
}
|
|
|
|
class Virtual {
|
|
public:
|
|
virtual void doSomething() {
|
|
printf("Virtual function did something.\n");
|
|
}
|
|
};
|
|
|
|
int
|
|
main()
|
|
{
|
|
namesp::Virtual my_outer;
|
|
Virtual my_virtual;
|
|
|
|
// Break here to get started
|
|
my_outer.doSomething();
|
|
my_virtual.doSomething();
|
|
|
|
return 0;
|
|
}
|
|
|