Added keyword 'thread_local' to Swig.
Added testcase. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@11393 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
31436be60f
commit
74d8325cdf
4 changed files with 18 additions and 3 deletions
|
|
@ -404,7 +404,8 @@ CPP0X_TEST_CASES = \
|
|||
cpp0x_explicit_conversion_operators \
|
||||
cpp0x_raw_string_literals \
|
||||
cpp0x_static_assert \
|
||||
cpp0x_template_explicit
|
||||
cpp0x_template_explicit \
|
||||
cpp0x_thread_local
|
||||
# cpp0x_constexpr # not supported by any compilers yet
|
||||
|
||||
# Broken C++0x test cases.
|
||||
|
|
|
|||
11
Examples/test-suite/cpp0x_thread_local.i
Normal file
11
Examples/test-suite/cpp0x_thread_local.i
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
/* This testcase checks whether Swig correctly parses the 'thread_local'
|
||||
keyword before the member type and name. */
|
||||
|
||||
%module cpp0x_thread_local
|
||||
|
||||
%inline %{
|
||||
struct A {
|
||||
thread_local int val;
|
||||
};
|
||||
%}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue