Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/pr58805.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 /* { dg-do compile } */ |
2 /* { dg-options "-O2 -ftree-tail-merge -fdump-tree-pre" } */ | |
3 | |
4 /* Type that matches the 'p' constraint. */ | |
5 #define TYPE void * | |
6 | |
7 static inline | |
8 void bar (TYPE *r) | |
9 { | |
10 TYPE t; | |
11 __asm__ ("" : "=&p" (t), "=p" (*r)); | |
12 } | |
13 | |
14 void | |
15 foo (int n, TYPE *x, TYPE *y) | |
16 { | |
17 if (n == 0) | |
18 bar (x); | |
19 else | |
20 bar (y); | |
21 } | |
22 | |
23 /* { dg-final { scan-tree-dump-times "__asm__" 2 "pre"} } */ |