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

template <typename T>
concept my_concept = true;

template <typename G>
void run () {
    my_concept<G> (G{});  // { dg-error "cannot call a concept as a function" }
}