summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp2a/fn-template11.C
blob: 1a6b68829002f58d5e8b4755350c2b051382ac85 (plain)
1
2
3
4
5
6
7
8
9
10
11
// P0846R0
// { dg-do compile }
// { dg-options "-std=c++2a" }

int nonconst ();

int foo ()
{
  return blah < // { dg-error "not declared" }
    nonconst (), nonconst (); // { dg-error "call to non-.constexpr. function" }
}