Files
cpp-thirdparty/winx64/bin/swig-3.0.12/Examples/test-suite/cpp11_static_assert.i
Bassem Girgis 81b4b9e273 Initial commit
2018-12-20 17:34:07 -06:00

18 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 cpp11_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");
};
%}