Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.c-torture/execute/pr81503.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 unsigned short a = 41461; |
2 unsigned short b = 3419; | |
131 | 3 #if __SIZEOF_INT__ >= 4 |
111 | 4 int c = 0; |
5 | |
6 void foo() { | |
7 if (a + b * ~(0 != 5)) | |
8 c = -~(b * ~(0 != 5)) + 2147483647; | |
9 } | |
131 | 10 #else |
11 __INT32_TYPE__ c = 0; | |
12 | |
13 void foo() { | |
14 if (a + b * ~((__INT32_TYPE__)(0 != 5))) | |
15 c = -~(b * ~((__INT32_TYPE__)(0 != 5))) + 2147483647; | |
16 } | |
17 #endif | |
111 | 18 |
19 int main() { | |
20 foo(); | |
21 if (c != 2147476810) | |
22 return -1; | |
23 return 0; | |
24 } |