(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
concepts/
var-templ1.C
// PR c++/67117
// { dg-do compile { target c++17_only } }
// { dg-options "-fconcepts" }

template <class T>
  requires false
constexpr bool v = true;

template <class T>
constexpr bool f() { return true; }

template <class T>
  requires v<T>
constexpr bool f() { return false; }

static_assert(f<void>());
static_assert(v<void>);		// { dg-error "invalid" }