Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/pr49000.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
rev | line source |
---|---|
111 | 1 /* PR tree-optimization/49000 */ |
2 /* { dg-do compile } */ | |
3 /* { dg-options "-O2 -g" } */ | |
4 | |
5 static int | |
6 foo (int x, int y) | |
7 { | |
8 return x * y; | |
9 } | |
10 | |
11 static int | |
12 bar (int *z) | |
13 { | |
14 return *z; | |
15 } | |
16 | |
17 void | |
18 baz (void) | |
19 { | |
20 int a = 42; | |
21 int *b = &a; | |
22 foo (bar (&a), 3); | |
23 } | |
24 | |
25 void | |
26 test (void) | |
27 { | |
28 baz (); | |
29 } |