Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/guality/pr43593.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 /* PR debug/43593 */ |
2 /* { dg-do run } */ | |
3 /* { dg-options "-g" } */ | |
4 | |
5 void __attribute__((noinline)) | |
6 bar (int *p) | |
7 { | |
8 asm volatile ("" : : "r" (p) : "memory"); | |
9 } | |
10 | |
11 int __attribute__((noinline)) | |
12 foo (void) | |
13 { | |
14 int i, *j = &i; | |
15 bar (j); | |
131 | 16 return 6 + i; /* { dg-final { gdb-test . "j" "&i" } } */ |
111 | 17 } |
18 | |
19 int | |
20 main (void) | |
21 { | |
22 foo (); | |
23 return 0; | |
24 } |