---
 Test/ProtocolCreation.m | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/Test/ProtocolCreation.m b/Test/ProtocolCreation.m
index 204021d..9b2566e 100644
--- a/Test/ProtocolCreation.m
+++ b/Test/ProtocolCreation.m
@@ -3,6 +3,11 @@
 #include <string.h>
 #include <assert.h>
 
+#ifndef __has_attribute
+#define __has_attribute(x)  0
+#endif
+
+
 @protocol Test2 @end
 
 int main(void)
@@ -23,6 +28,10 @@ int main(void)
 	unsigned int count;
 	objc_property_t *props = protocol_copyPropertyList(p1, &count);
 	assert(count == 1);
+#if __has_feature(objc_property_clean_abi)
+	assert(strcmp("T@", property_getAttributes(*props)) == 0);
+#else
 	assert(strcmp("T@,Vfoo", property_getAttributes(*props)) == 0);
+#endif
 	return 0;
 }
_______________________________________________
Gnustep-dev mailing list
Gnustep-dev@gnu.org
https://lists.gnu.org/mailman/listinfo/gnustep-dev

Reply via email to