summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/concepts/intro6.C
blob: 233c5bcec7be3d76f4b416f2453a6f1de8c1e01d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// PR c++/67003
// { dg-do compile { target c++17_only } }
// { dg-options "-fconcepts" }

namespace X {
  template<class>
  concept bool C = true;
}

X::C{T}
void foo() {}

int main() { foo<int>(); }