comparison gcc/testsuite/gcc.dg/pr45107.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
comparison
equal deleted inserted replaced
68:561a7518be6b 111:04ced10e8804
1 /* PR rtl-optimization/45107 */
2 /* { dg-do compile } */
3 /* { dg-options "-Os -fgcse-las" } */
4
5 extern void bar(int *);
6
7 int foo (int *p)
8 {
9 int i = *p;
10 if (i != 1)
11 bar(&i);
12 *p = i;
13 }