repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
* ubsan.c (ubsan_expand_null_ifn): Use _v1 suffixed type mismatch
[official-gcc.git]
/
gcc
/
testsuite
/
c-c++-common
/
restrict-1.c
blob
15b9dafea43103c86af25eb4e1b4e9d3aad7aa78
1
/* { dg-do link } */
2
/* { dg-options "-O -fno-strict-aliasing -fdump-tree-optimized" } */
3
4
extern
void
link_error
(
void
);
5
6
void
bar0
(
int
*
__restrict__ arr1
,
int
*
__restrict__ arr2
)
7
{
8
arr1
[
0
] =
1
;
9
arr2
[
0
] =
1
;
10
if
(
arr1
[
0
] !=
1
)
11
link_error
();
12
}
13
14
int
main
()
15
{
16
return
0
;
17
}
18
19
/* { dg-final { scan-tree-dump-not "link_error" "optimized" } } */