aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp2a/concepts-sfinae1.C
blob: 87b5d750f66b8cd1cdce60360f8cd6d0511e3137 (plain)
1
2
3
4
5
6
7
8
9
10
// { dg-do compile { target concepts } }

template <class T> struct A
{
  static const int x = 42;
};

template <class T> concept R42 = A<T&>::x == 42;

static_assert (!R42<void>);