2014-08-04 Ed Schonberg <schonberg@adacore.com>
[official-gcc.git] / gcc / testsuite / gcc.dg / pr58805.c
blobdda0e4bdf4bd0af77c20ade2ab5994e042f158c9
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -ftree-tail-merge -fdump-tree-pre" } */
4 /* Type that matches the 'p' constraint. */
5 #define TYPE void *
7 static inline
8 void bar (TYPE *r)
10 TYPE t;
11 __asm__ ("" : "=&p" (t), "=p" (*r));
14 void
15 foo (int n, TYPE *x, TYPE *y)
17 if (n == 0)
18 bar (x);
19 else
20 bar (y);
23 /* { dg-final { scan-tree-dump-times "__asm__" 2 "pre"} } */
24 /* { dg-final { cleanup-tree-dump "pre" } } */