5a7bd6c270f8e8df4c504e32793366d2486fdd42
[gcc.git] / gcc / testsuite / gcc.target / i386 / pr40906-2.c
1 /* { dg-do run } */
2 /* { dg-require-effective-target ia32 } */
3 /* { dg-options "-O2 -Wno-psabi -fomit-frame-pointer -fno-asynchronous-unwind-tables -mpush-args -mno-accumulate-outgoing-args -m128bit-long-double" } */
4
5 void abort (void);
6
7 void __attribute__((noinline))
8 f (long double a)
9 {
10 if (a != 1.23L)
11 abort ();
12 }
13
14 int __attribute__((noinline))
15 g (long double b)
16 {
17 f (b);
18 return 0;
19 }
20
21 int
22 main (void)
23 {
24 g (1.23L);
25 return 0;
26 }