view gcc/testsuite/g++.dg/cpp2a/spaceship-constexpr2.C @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents
children
line wrap: on
line source

// PR c++/93650
// { dg-do compile { target c++2a } }

namespace std {
  using type = enum _Ord { less };
  class strong_ordering {
    type _M_value;
    constexpr strong_ordering(_Ord) : _M_value() {}
    static const strong_ordering less;
    static strong_ordering equal;
    static strong_ordering greater;
  } constexpr strong_ordering::less(_Ord::less);
  auto v = 1 <=> 2;
}