Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gcc.c-torture/execute/pr94130.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 /* PR tree-optimization/94130 */ | |
2 | |
3 int | |
4 main () | |
5 { | |
6 int a[8]; | |
7 char *b = __builtin_memset (a, 0, sizeof (a)); | |
8 a[0] = 1; | |
9 a[1] = 2; | |
10 a[2] = 3; | |
11 if (b != (char *) a) | |
12 __builtin_abort (); | |
13 else | |
14 asm volatile ("" : : "g" (a) : "memory"); | |
15 return 0; | |
16 } |