summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/static_assert10.C
blob: e7f728e3f4fa21a399ea4b4a1aaed44f47b838db (plain)
1
2
3
4
5
6
7
8
// PR c++/60254
// { dg-do compile { target c++11 } }

template<typename T> bool foo(T)
{
  int i;
  static_assert(foo(i), "Error"); // { dg-error "non-constant condition|not usable|non-constexpr" }
}