From 08306b98020d5dcfd513b515f7955d44cfef1d6b Mon Sep 17 00:00:00 2001 From: Ganesh Viswanathan Date: Mon, 13 Apr 2020 20:18:37 -0500 Subject: Fix #172 - skip qualifiers --- tests/include/tast2.h | 10 ++++++++++ tests/tast2.nim | 7 ++++++- 2 files changed, 16 insertions(+), 1 deletion(-) (limited to 'tests') 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 -- cgit v1.2.3