From e38f49e32acfbf2217e65c51a1520eb90ad5ba71 Mon Sep 17 00:00:00 2001 From: Christian Jullien Date: Sun, 25 Sep 2016 12:13:17 +0200 Subject: [PATCH] Fix test for __*LP*__ predefined macros --- tests/tests2/86-memory-model.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/tests/tests2/86-memory-model.c b/tests/tests2/86-memory-model.c index df1b26e..ca30737 100755 --- a/tests/tests2/86-memory-model.c +++ b/tests/tests2/86-memory-model.c @@ -5,29 +5,29 @@ main() { #if defined(__LLP64__) if (sizeof(short) == 2 - sizeof(int) == 4 - sizeof(long int) == 4 - sizeof(long long int) == 8 - sizeof(void*) == 8) { + && sizeof(int) == 4 + && sizeof(long int) == 4 + && sizeof(long long int) == 8 + && sizeof(void*) == 8) { (void)printf("Ok\n"); } else { (void)printf("KO __LLP64__\n"); } #elif defined(__LP64__) if (sizeof(short) == 2 - sizeof(int) == 4 - sizeof(long int) == 8 - sizeof(long long int) == 8 - sizeof(void*) == 8) { + && sizeof(int) == 4 + && sizeof(long int) == 8 + && sizeof(long long int) == 8 + && sizeof(void*) == 8) { (void)printf("Ok\n"); } else { (void)printf("KO __LP64__\n"); } #elif defined(__ILP32__) if (sizeof(short) == 2 - sizeof(int) == 4 - sizeof(long int) == 4 - sizeof(void*) == 4) { + && sizeof(int) == 4 + && sizeof(long int) == 4 + && sizeof(void*) == 4) { (void)printf("Ok\n"); } else { (void)printf("KO __ILP32__\n");