Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gcc.dg/torture/pr94988.c @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
145:1830386684a0 | 152:2b5abeee2509 |
---|---|
1 /* { dg-do run } */ | |
2 | |
3 short *b; | |
4 | |
5 void __attribute__((noipa)) | |
6 bar (short x, int j) | |
7 { | |
8 for (int i = 0; i < j; ++i) | |
9 *b++ = x; | |
10 } | |
11 | |
12 int | |
13 main() | |
14 { | |
15 b = (short *)&b; | |
16 bar (0, 1); | |
17 #if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ | |
18 if ((short)(__UINTPTR_TYPE__)b != 0) | |
19 __builtin_abort (); | |
20 #endif | |
21 return 0; | |
22 } |