diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/opt/pr23056.C')
-rw-r--r-- | gcc/testsuite/g++.dg/opt/pr23056.C | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/opt/pr23056.C b/gcc/testsuite/g++.dg/opt/pr23056.C new file mode 100644 index 000000000..b9689ec50 --- /dev/null +++ b/gcc/testsuite/g++.dg/opt/pr23056.C @@ -0,0 +1,9 @@ +// PR c++/23056 +// { dg-do compile } + +template <bool T> struct S { virtual ~S(); }; +void foo () +{ + static_cast<bool>("Foo"); +} +S<true> a; |