Move from KnownFail, now that it works!

This commit is contained in:
Axel Naumann 2017-01-12 10:17:42 +01:00 committed by sftnight
parent 478a2e8646
commit 3e22e9e78e
2 changed files with 11 additions and 23 deletions

View File

@ -26,4 +26,15 @@ int injected = 13; // expected-error {{declaration conflicts with target of usin
extern "C" double likeSin(double); // expected-note {{previous definition is here}}
int likeSin = 14; // expected-error {{redefinition of 'likeSin' as different kind of symbol}}
// Test a weakness in the declaration extraction of types (ROOT-5248).
class MyClass; // this type...
extern MyClass* my;
class MyClass { // and that type used to not be redecls
public:
MyClass* getMyClass() {
return 0;
}
} cl;
MyClass* my = cl.getMyClass();
.q

View File

@ -1,23 +0,0 @@
//------------------------------------------------------------------------------
// CLING - the C++ LLVM-based InterpreterG :)
//
// This file is dual-licensed: you can choose to license it under the University
// of Illinois Open Source License or the GNU Lesser General Public License. See
// LICENSE.TXT for details.
//------------------------------------------------------------------------------
// RUN: cat %s | %cling -Xclang -verify
// The test exposes a weakness in the declaration extraction of types. As
// reported in issue ROOT-5248.
class MyClass;
extern MyClass* my;
class MyClass {
public:
MyClass* getMyClass() {
return 0;
}
} cl;
// The next line should work without complaints!
MyClass* my = cl.getMyClass();