From d4e01536f814e456a56dd6d53f3bb3d548c85a43 Mon Sep 17 00:00:00 2001 From: Axel Naumann Date: Thu, 21 Jul 2016 17:37:31 +0200 Subject: [PATCH] Make it fail! --- test/Prompt/ClashingDeclsKnownFail.C | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/Prompt/ClashingDeclsKnownFail.C b/test/Prompt/ClashingDeclsKnownFail.C index 38fad201..cb7ba464 100644 --- a/test/Prompt/ClashingDeclsKnownFail.C +++ b/test/Prompt/ClashingDeclsKnownFail.C @@ -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();