[D] Exception and Error have become blessed names; removed d_exception_name test case.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12900 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
David Nadlinger 2012-01-23 21:59:20 +00:00
commit 17a7ba0403
4 changed files with 3 additions and 16 deletions

View file

@ -7,6 +7,7 @@ Version 2.0.5 (in progress)
2012-01-23: klickverbot
[D] Correctly annotate function pointers with C linkage.
[D] Exception and Error have become blessed names; removed d_exception_name test case.
2012-01-20: wsfulton
[Python] Add Python stepped slicing support to the STL wrappers (std::vector, std::list).

View file

@ -16,7 +16,6 @@ endif
TESTSUFFIX = _runme$(VERSIONSUFFIX).d
CPP_TEST_CASES = \
d_exception_name \
d_nativepointers \
exception_partial_info

View file

@ -1,15 +0,0 @@
// Tests if exception handling still works in the presence of a wrapped C++
// class called »Exception«, which could shadow the built-in Exception class.
%module d_exception_name
%inline %{
class Exception {
Exception(int i) {}
};
class Foo {
~Foo() {}
public:
void bar(Exception *e) {}
};
%}

View file

@ -5,6 +5,8 @@
#define DKEYWORD(x) %keywordwarn("'" `x` "' is a D keyword, renaming to '_" `x` "'",rename="_%s") `x`
// Source: http://www.digitalmars.com/d/{1.0,2.0}/lex.html and
DKEYWORD(Error);
DKEYWORD(Exception);
DKEYWORD(Object);
DKEYWORD(__FILE__);
DKEYWORD(__LINE__);