Debian Codegraph @

gcc/testsuite/g++.target/i386/pr99679-2.C

raw
1 // { dg-do compile }
2 // { dg-options "-Ofast -fipa-pta -mgeneral-regs-only" }
3
4 #include <stdarg.h>
5
6 extern "C" void abort (void);
7
8 void
9 foo (int x, ...)
10 {
11 double ld;
12 va_list ap;
13 va_start (ap, x);
14 ld = va_arg (ap, double); // { dg-error "SSE register argument with SSE disabled" "" { target { ! ia32 } } }
15 if (ld)
16 abort ();
17 } // { dg-error "SSE register return with SSE disabled" "" { target { ! ia32 } } }