(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
aarch64/
mgeneral-regs_2.c
       1  /* { dg-options "-mgeneral-regs-only" } */
       2  
       3  #include <stdarg.h>
       4  
       5  typedef int int32x2_t __attribute__ ((__vector_size__ ((8))));
       6  
       7  int
       8  test (int i, ...)
       9  {
      10    va_list argp;
      11    va_start (argp, i);
      12    int32x2_t x = (int32x2_t) {0, 1};
      13    x += va_arg (argp, int32x2_t); /* { dg-error "'-mgeneral-regs-only' is incompatible with the use of vector types" } */
      14    return x[0] + x[1];
      15  }