Documented C++0x testcases.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@11623 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Matevz Jekovec 2009-08-17 14:42:34 +00:00
commit 67b4ad7084
7 changed files with 16 additions and 1 deletions

View file

@ -1,3 +1,5 @@
/* This testcase checks whether Swig correctly uses the new alternate functions
declarations and definitions introduced in C++0x. */
%module cpp0x_alternate_function_syntax
%inline %{

View file

@ -1,3 +1,5 @@
/* This testcase checks whether Swig correctly parses the default and delete
keywords which keep or remove default C++ object construction functions. */
%module cpp0x_default_delete
%{
@ -5,7 +7,7 @@
class NonCopyable {
public:
NonCopyable & operator=(const NonCopyable&) = delete; /* Removes operator= */
NonCopyable& operator=(const NonCopyable&) = delete; /* Removes operator= */
NonCopyable(const NonCopyable&) = delete; /* Removed copy constructor */
NonCopyable() = default; /* Explicitly allows the empty constructor */
void *operator new(size_t) = delete; /* Removes new NonCopyable */

View file

@ -1,3 +1,5 @@
/* This testcase checks the new wrappers for the new unordered_ STL types
introduced in C++0x. */
%module cpp0x_hash_tables
%inline %{

View file

@ -1,3 +1,5 @@
/* This testcase checks whether Swig correctly parses the double ampersand &&
move operator which is currently mapped to the reference & operator. */
%module cpp0x_rvalue_reference
%inline %{

View file

@ -1,3 +1,6 @@
/* This testcase checks whether Swig produces the correct wrapper for the
strongly typed enums. Enums with the same type are comparable. Enum classes
require support for nested classes. */
%module cpp0x_strongly_typed_enumerations
%inline %{

View file

@ -1,3 +1,5 @@
/* This testcase checks whether Swig syntactically correctly parses the curly
brackets {} for uniform member initialization. */
%module cpp0x_uniform_initialization
%inline %{

View file

@ -1,3 +1,5 @@
/* This testcase checks whether Swig correctly parses the support for types
without the defined trivial constructor in the unions. */
%module cpp0x_unrestricted_unions
%inline %{