(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.old-deja/
g++.robertl/
eb82.C
// { dg-do assemble  }
#include <stdio.h>

template <int n1>
double val <int> () // { dg-error "expected" "" { target c++17_down } } bogus code
// { dg-error "template-id .val<int>. in declaration of primary template" "" { target c++2a } .-1 }
{                          
   return (double) n1;
}

int main ()
{
   printf ("%d\n", val<(int)3> ()); // { dg-error "" "" { target c++17_down } } val undeclared
}