Mercurial > hg > CbC > CbC_gcc
view 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 |
line wrap: on
line source
/* { dg-do compile } */ /* { dg-options "-O2 -ftree-tail-merge -fdump-tree-pre" } */ /* Type that matches the 'p' constraint. */ #define TYPE void * static inline void bar (TYPE *r) { TYPE t; __asm__ ("" : "=&p" (t), "=p" (*r)); } void foo (int n, TYPE *x, TYPE *y) { if (n == 0) bar (x); else bar (y); } /* { dg-final { scan-tree-dump-times "__asm__" 2 "pre"} } */