summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/concepts/var-templ3.C
blob: 07468637900942a74669a90c4221f118bbe0710b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// PR c++/68666
// { dg-options "-std=c++17 -fconcepts" }

struct A {
  template <class>
  static constexpr bool val = true;
};

template <class T>
concept bool C = A::val<T>;

C{T} struct B {};