comparison gcc/testsuite/c-c++-common/pr19807-3.c @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents
children
comparison
equal deleted inserted replaced
131:84e7813d76e9 145:1830386684a0
1 /* Some targets can optimize this on RTL. */
2 /* { dg-do link { target { x86_64-*-* i?86-*-* } } } */
3 /* { dg-options "-O -fdump-tree-optimized" } */
4
5 extern void link_error(void);
6 int i;
7 int main()
8 {
9 int a[4];
10 if (&a[1] + i + 1 != &a[i+2])
11 link_error();
12 return 0;
13 }
14
15 /* { dg-final { scan-tree-dump-not "link_error" "optimized" { xfail *-*-* } } } */