Fixed testcase warnings.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@11625 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
67b4ad7084
commit
c9fcb01943
7 changed files with 17 additions and 4 deletions
|
|
@ -1,13 +1,15 @@
|
|||
/* This testcase checks whether Swig correctly uses the new initializer_list
|
||||
introduced in C++0x. */
|
||||
%module cpp0x_initializer_list
|
||||
%warnfilter(520) A;
|
||||
|
||||
%inline %{
|
||||
#include <initializer_list>
|
||||
|
||||
class A {
|
||||
public:
|
||||
A( std::initializer_list<int, int> ) {}
|
||||
A( std::initializer_list<int> ) {}
|
||||
A() {}
|
||||
};
|
||||
%}
|
||||
|
||||
|
|
|
|||
|
|
@ -8,6 +8,8 @@
|
|||
This module also tests whether Swig correctly parses custom string delimiters.
|
||||
*/
|
||||
%module cpp0x_raw_string_literals
|
||||
%warnfilter(454) c;
|
||||
%warnfilter(454) d;
|
||||
|
||||
%inline %{
|
||||
#include <iostream>
|
||||
|
|
|
|||
|
|
@ -2,6 +2,10 @@
|
|||
strongly typed enums. Enums with the same type are comparable. Enum classes
|
||||
require support for nested classes. */
|
||||
%module cpp0x_strongly_typed_enumerations
|
||||
%warnfilter(302) Val1;
|
||||
%warnfilter(302) Val2;
|
||||
%warnfilter(302) Val3;
|
||||
%warnfilter(302) Val4;
|
||||
|
||||
%inline %{
|
||||
enum class Enum1 {
|
||||
|
|
|
|||
|
|
@ -3,6 +3,8 @@
|
|||
using the translation unit).
|
||||
*/
|
||||
%module cpp0x_template_explicit
|
||||
%warnfilter(320) std::vector<A>;
|
||||
%warnfilter(320) std::vector<A*>;
|
||||
|
||||
%inline %{
|
||||
#include <vector>
|
||||
|
|
|
|||
|
|
@ -11,8 +11,8 @@ struct OutputType {
|
|||
OutputType(int v) { v=val; }
|
||||
};
|
||||
|
||||
/* Note: GCC doesn't support user-defined literals yet! */
|
||||
struct TT {
|
||||
OutputType operator << (const char * string_values, size_t num_chars) { return OutputType(100); }
|
||||
OutputType operator "" (const char * string_values, size_t num_chars) { return OutputType(100); }
|
||||
OutputType operator "" _mySuffix1(const char * string_values, size_t num_chars) { return OutputType(100); }
|
||||
OutputType operator "" _mySuffix2(const wchar_t * string_values, size_t num_chars) { return OutputType(200); }
|
||||
|
|
|
|||
|
|
@ -4,6 +4,9 @@
|
|||
using variadic number of classes.
|
||||
*/
|
||||
%module cpp0x_variadic_templates
|
||||
%warnfilter(507) MultiArgs1;
|
||||
%warnfilter(507) SizeOf1;
|
||||
%warnfilter(507) MultiInherit1;
|
||||
|
||||
////////////////////////
|
||||
// Variadic templates //
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue