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:
Matevz Jekovec 2009-07-14 12:05:05 +00:00
commit 74d8325cdf
4 changed files with 18 additions and 3 deletions

View file

@ -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.

View 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;
};
%}