1 /* PR rtl-optimization/41239 */
9 extern void abort (void);
10 extern void exit (int);
11 extern char fn1 (int, const char *, int, const char *, const char *);
12 extern void fn2 (int, ...);
14 extern int fn4 (const char *fmt
, ...) __attribute__ ((format (printf
, 1, 2)));
19 signed int arg1
= x
->arg
[0];
20 long int arg2
= x
->arg
[1];
23 (fn1 (20, "foo", 924, __func__
, ((void *) 0))
24 ? (fn2 (fn3 (0x2040082), fn4 ("division by zero")))
27 return (long int) arg1
/ arg2
;
33 struct S s
= { 2, { 5, 0 } };
38 __attribute__((noinline
)) char
39 fn1 (int x
, const char *y
, int z
, const char *w
, const char *v
)
41 asm volatile ("" : : "r" (w
), "r" (v
) : "memory");
42 asm volatile ("" : "+r" (x
) : "r" (y
), "r" (z
) : "memory");
46 __attribute__((noinline
)) int
49 asm volatile ("" : "+r" (x
) : : "memory");
53 __attribute__((noinline
)) int
54 fn4 (const char *x
, ...)
56 asm volatile ("" : "+r" (x
) : : "memory");
60 __attribute__((noinline
)) void
63 asm volatile ("" : "+r" (x
) : : "memory");
65 /* Could be a longjmp or throw too. */