@@ -28,10 +28,11 @@ static OFString *module = @"OFMethodSignature"; struct test1_struct { char c; int i; + char d; }; struct test2_struct { char c; struct { @@ -40,17 +41,17 @@ } st; union { char c; int i; } u; - long double d; + double d; }; union test3_union { char c; int i; - long double d; + double d; }; union test4_union { char c; struct { @@ -57,11 +58,11 @@ short x, y; } st; int i; union { float f; - long double d; + double d; } u; }; @implementation TestsAppDelegate (OFMethodSignatureTests) - (void)methodSignatureTests @@ -131,11 +132,11 @@ TEST(@"of_sizeof_type_encoding() #5", of_sizeof_type_encoding(@encode(struct test1_struct [5])) == sizeof(struct test1_struct [5])) - TEST(@"of_alignof() #1", + TEST(@"of_alignof_type_encoding() #1", of_alignof_type_encoding(@encode(struct test1_struct)) == OF_ALIGNOF(struct test1_struct)) TEST(@"of_alignof_type_encoding() #2", of_alignof_type_encoding(@encode(struct test2_struct)) ==