summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/opt/pr23056.C
blob: b9689ec508801da76b4fbd2c1d5e6c7b11c7bb60 (plain)
1
2
3
4
5
6
7
8
9
// PR c++/23056
// { dg-do compile }

template <bool T> struct S { virtual ~S(); };
void foo ()
{
  static_cast<bool>("Foo");
}
S<true> a;