blob: 859019970ae044d8b36a095329c9e47a2826a399 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
/* { dg-options "-mgeneral-regs-only" } */
#include <stdarg.h>
typedef int int32x2_t __attribute__ ((__vector_size__ ((8))));
int
test (int i, ...)
{
va_list argp;
va_start (argp, i);
int32x2_t x = (int32x2_t) {0, 1};
x += va_arg (argp, int32x2_t); /* { dg-error "'-mgeneral-regs-only' is incompatible with vector varargs" } */
return x[0] + x[1];
}
|