diff options
| author | Ganesh Viswanathan <dev@genotrance.com> | 2020-04-13 20:18:37 -0500 |
|---|---|---|
| committer | Ganesh Viswanathan <dev@genotrance.com> | 2020-04-13 20:18:37 -0500 |
| commit | 08306b98020d5dcfd513b515f7955d44cfef1d6b (patch) | |
| tree | cb33d43744485774b14b2e168d7d886a244fb319 /tests | |
| parent | f23d17d0b2f2e6bd66b0d685461d9dd1c2070918 (diff) | |
| download | nimterop-issue172.tar.gz nimterop-issue172.zip | |
Fix #172 - skip qualifiersissue172
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/include/tast2.h | 10 | ||||
| -rw-r--r-- | tests/tast2.nim | 7 |
2 files changed, 16 insertions, 1 deletions
diff --git a/tests/include/tast2.h b/tests/include/tast2.h index 76aadc9..136784a 100644 --- a/tests/include/tast2.h +++ b/tests/include/tast2.h @@ -170,6 +170,11 @@ typedef struct SDL_AudioCVT int needed; } SDL_AudioCVT; +// Issue #172 +typedef struct { + const char* const* x; +} SomeType; + // DUPLICATES @@ -334,6 +339,11 @@ typedef struct SDL_AudioCVT int needed; } SDL_AudioCVT; +// Issue #172 +typedef struct { + const char* const* x; +} SomeType; + #endif diff --git a/tests/tast2.nim b/tests/tast2.nim index 4741062..6d749c6 100644 --- a/tests/tast2.nim +++ b/tests/tast2.nim @@ -367,4 +367,9 @@ checkPragmas(GPU_Target, pHeaderBy, istype = false) # Issue #185 assert AudioCVT is object testFields(AudioCVT, "needed!cint") -checkPragmas(AudioCVT, pHeaderBy, istype = false, "SDL_")
\ No newline at end of file +checkPragmas(AudioCVT, pHeaderBy, istype = false, "SDL_") + +# Issue #172 +assert SomeType is object +testFields(SomeType, "x!ptr cstring") +checkPragmas(SomeType, pHeaderImpBy)
\ No newline at end of file |
