* tree-loop-distribution.c (INCLUDE_ALGORITHM): New header file.
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / pr53272-1.c
bloba8fc91cb5b3d7f7be00fcfd47d3c5e8cbe2580de
1 /* { dg-do run } */
2 /* { dg-additional-sources "pr53272-2.c" } */
3 struct rtc_class_ops {
4 int (*f)(void *, unsigned int enabled);
5 };
7 struct rtc_device
9 void *owner;
10 const struct rtc_class_ops *ops;
11 int ops_lock;
14 __attribute__ ((__noinline__, __noclone__))
15 extern int foo(void *);
16 __attribute__ ((__noinline__, __noclone__))
17 extern void foobar(void *);
19 __attribute__ ((__noinline__, __noclone__))
20 int rtc_update_irq_enable(struct rtc_device *rtc, unsigned int enabled)
22 int err;
23 asm volatile ("");
25 err = foo(&rtc->ops_lock);
27 if (err)
28 return err;
30 if (!rtc->ops)
31 err = -19;
32 else if (!rtc->ops->f)
33 err = -22;
34 else
35 err = rtc->ops->f(rtc->owner, enabled);
37 foobar(&rtc->ops_lock);
38 return err;