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

struct A
{
  template<typename T> bool foo(T)
  {
    static_assert(foo(0), "Error"); // { dg-error "non-constant condition|constant expression" }
  }
};