diff options
| author | Ganesh Viswanathan <dev@genotrance.com> | 2020-04-12 12:19:13 -0500 |
|---|---|---|
| committer | Ganesh Viswanathan <dev@genotrance.com> | 2020-04-12 12:19:13 -0500 |
| commit | 9cd39600d43c90045b0da6873900881449e6d609 (patch) | |
| tree | 9fd20983dd390b2177b8d471440521a43d17975d /tests | |
| parent | ecee58342ee53296eae98fcf4038e6f999b416a5 (diff) | |
| download | nimterop-9cd39600d43c90045b0da6873900881449e6d609.tar.gz nimterop-9cd39600d43c90045b0da6873900881449e6d609.zip | |
Partly fix issue #183, lineTrace:on
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/include/tast2.h | 13 | ||||
| -rw-r--r-- | tests/tast2.nim | 7 |
2 files changed, 19 insertions, 1 deletions
diff --git a/tests/include/tast2.h b/tests/include/tast2.h index f4cd201..4854eb7 100644 --- a/tests/include/tast2.h +++ b/tests/include/tast2.h @@ -155,6 +155,12 @@ typedef struct { int flags; } BASS_DEVICEINFO; +// Issue #183 +struct GPU_Target +{ + int w, *h; + char *x, y, **z; +}; @@ -305,6 +311,13 @@ typedef struct { int flags; } BASS_DEVICEINFO; +// Issue #183 +struct GPU_Target +{ + int w, *h; + char *x, y, **z; +}; + #endif diff --git a/tests/tast2.nim b/tests/tast2.nim index a88c29e..de0e743 100644 --- a/tests/tast2.nim +++ b/tests/tast2.nim @@ -356,4 +356,9 @@ assert func2 is proc (f1: cint; sfunc2: proc (f1: cint; ssfunc2: proc (f1: cint) assert BASS_DEVICEINFO is object testFields(BASS_DEVICEINFO, "name|driver|flags!cstring|cstring|cint") -checkPragmas(BASS_DEVICEINFO, pHeaderImpBy)
\ No newline at end of file +checkPragmas(BASS_DEVICEINFO, pHeaderImpBy) + +# Issue #183 +assert GPU_Target is object +testFields(GPU_Target, "w|h|x|y|z!cint|ptr cint|cstring|cchar|ptr cstring") +checkPragmas(GPU_Target, pHeaderBy, istype = false)
\ No newline at end of file |
