History

Fix test for __*LP*__ predefined macros

Christian Jullien committed 10 years ago

Commit e38f49e1 parent c1b101c1 file · +11 −11Browse files

Unified · Split

tests/tests2/86-memory-model.c+11−11
@@ -5,29 +5,29 @@ main() · 4 unmodified lines
5{5{
6#if defined(__LLP64__)6#if defined(__LLP64__)
7 if (sizeof(short) == 27 if (sizeof(short) == 2
8 sizeof(int) == 48 && sizeof(int) == 4
9 sizeof(long int) == 49 && sizeof(long int) == 4
10 sizeof(long long int) == 810 && sizeof(long long int) == 8
11 sizeof(void*) == 8) {11 && sizeof(void*) == 8) {
12 (void)printf("Ok\n");12 (void)printf("Ok\n");
13 } else {13 } else {
14 (void)printf("KO __LLP64__\n");14 (void)printf("KO __LLP64__\n");
15 }15 }
16#elif defined(__LP64__)16#elif defined(__LP64__)
17 if (sizeof(short) == 217 if (sizeof(short) == 2
18 sizeof(int) == 418 && sizeof(int) == 4
19 sizeof(long int) == 819 && sizeof(long int) == 8
20 sizeof(long long int) == 820 && sizeof(long long int) == 8
21 sizeof(void*) == 8) {21 && sizeof(void*) == 8) {
22 (void)printf("Ok\n");22 (void)printf("Ok\n");
23 } else {23 } else {
24 (void)printf("KO __LP64__\n");24 (void)printf("KO __LP64__\n");
25 }25 }
26#elif defined(__ILP32__)26#elif defined(__ILP32__)
27 if (sizeof(short) == 227 if (sizeof(short) == 2
28 sizeof(int) == 428 && sizeof(int) == 4
29 sizeof(long int) == 429 && sizeof(long int) == 4
30 sizeof(void*) == 4) {30 && sizeof(void*) == 4) {
31 (void)printf("Ok\n");31 (void)printf("Ok\n");
32 } else {32 } else {
33 (void)printf("KO __ILP32__\n");33 (void)printf("KO __ILP32__\n");

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t