From b9b61985204624f05ac8edc212333e40b6e2dfd5 Mon Sep 17 00:00:00 2001 From: David Chisnall Date: Mon, 6 Aug 2018 14:50:25 +0100 Subject: [PATCH] Improve the forward-declared protocol test. --- Test/ForwardDeclareProtocolAccess.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Test/ForwardDeclareProtocolAccess.m b/Test/ForwardDeclareProtocolAccess.m index 5e36399..122c65d 100644 --- a/Test/ForwardDeclareProtocolAccess.m +++ b/Test/ForwardDeclareProtocolAccess.m @@ -15,6 +15,10 @@ int main(void) #ifdef GS_RUNTIME_V2 // With the new ABI, these should be precisely the same object. assert(p1 == p2); + unsigned int count; + protocol_copyMethodDescriptionList(p2, YES, YES, &count); + // We did get the correct protocol! + assert(count == 1); #endif return 0; }