Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gcc.dg/pr84095.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
111:04ced10e8804 | 131:84e7813d76e9 |
---|---|
1 /* PR tree-optimization/84095 - false-positive -Wrestrict warnings for | |
2 memcpy within array | |
3 { dg-do compile } | |
4 { dg-options "-O2 -Wrestrict" } */ | |
5 | |
6 struct { int i; } a[8]; | |
7 | |
8 void f (void) | |
9 { | |
10 int i; | |
11 | |
12 for (i = 1; i < 8; i++) | |
13 __builtin_memcpy (&a[i], &a[0], sizeof(a[0])); /* { dg-bogus "\\\[-Wrestrict]" } */ | |
14 } |