aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp2a/spaceship-vec1.C
blob: bc1ec63113a5848d023fcdd3d03eeb97b771184b (plain)
1
2
3
4
5
6
7
8
9
10
11
// { dg-do compile { target c++20 } }

#include <compare>

#define vector __attribute__((vector_size(4*sizeof(int)) ))

int main()
{
  vector int a, b;
  a <=> b;		     // { dg-message "three-way comparison of vector" }
}