Debian Codegraph @

gcc/testsuite/g++.dg/template/conv15.C

raw
1 // PR c++/86219
2
3 template <int a> struct t;
4 template <int a>
5 void f ()
6 {
7 const int b = ""; // { dg-error "conversion" }
8 t<b>::c; // { dg-error "constant" }
9 // { dg-prune-output "template argument 1 is invalid" }
10 }