mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-30 15:33:24 -04:00
29 lines
496 B
C
29 lines
496 B
C
$NetBSD$
|
|
|
|
--- gcc/testsuite/gcc.c-torture/compile/pr51767.c.orig Wed May 21 19:48:58 2014
|
|
+++ gcc/testsuite/gcc.c-torture/compile/pr51767.c
|
|
@@ -0,0 +1,23 @@
|
|
+/* PR rtl-optimization/51767 */
|
|
+
|
|
+extern void fn1 (void), fn2 (void);
|
|
+
|
|
+static inline __attribute__((always_inline)) int
|
|
+foo (int *x, long y)
|
|
+{
|
|
+ asm goto ("" : : "r" (x), "r" (y) : "memory" : lab);
|
|
+ return 0;
|
|
+lab:
|
|
+ return 1;
|
|
+}
|
|
+
|
|
+void
|
|
+bar (int *x)
|
|
+{
|
|
+ if (foo (x, 23))
|
|
+ fn1 ();
|
|
+ else
|
|
+ fn2 ();
|
|
+
|
|
+ foo (x, 2);
|
|
+}
|