Make it fail!

This commit is contained in:
Axel Naumann 2016-07-21 17:37:31 +02:00 committed by sftnight
parent a34a96dac8
commit d4e01536f8

View File

@ -12,13 +12,13 @@
// The test exposes a weakness in the declaration extraction of types. As
// reported in issue ROOT-5248.
class MyClass; //expected-note {{candidate found by name lookup is 'MyClass'}}
class MyClass;
extern MyClass* my;
class MyClass { //expected-note {{candidate found by name lookup is 'MyClass'}}
class MyClass {
public:
MyClass* getMyClass() {
return 0;
}
} cl;
// The next line should work without complaints!
MyClass* my = cl.getMyClass(); //expected-error {{reference to 'MyClass' is ambiguous}}
MyClass* my = cl.getMyClass();