git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@12154 626c5289-ae23-0410-ae9c-e8d60b6d4f22
17 lines
380 B
OpenEdge ABL
17 lines
380 B
OpenEdge ABL
/* This test case checks whether SWIG correctly parses and ignores the
|
|
keywords "static_assert()" inside the class or struct.
|
|
*/
|
|
%module cpp0x_static_assert
|
|
|
|
%inline %{
|
|
template <typename T>
|
|
struct Check1 {
|
|
static_assert(sizeof(int) <= sizeof(T), "not big enough");
|
|
};
|
|
|
|
template <typename T>
|
|
class Check2 {
|
|
static_assert(sizeof(int) <= sizeof(T), "not big enough");
|
|
};
|
|
%}
|
|
|