diff options
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 |
