Use -fcf-protection=return in cet-intrin-4.c
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr70738-5.c
blob8b4380921f45bfcb0261fae44a5f0995526a0cd3
1 /* { dg-do compile { target { ! ia32 } } } */
2 /* { dg-options "-msse2 -mgeneral-regs-only" } */
4 #include <stdarg.h>
6 typedef int int32x2_t __attribute__ ((__vector_size__ ((8))));
8 int
9 test (int i, ...)
11 va_list argp;
12 va_start (argp, i);
13 int32x2_t x = (int32x2_t) {0, 1};
14 x += va_arg (argp, int32x2_t); /* { dg-error "SSE register argument with SSE disabled" } */
15 return x[0] + x[1];