Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/cpp2a/consteval16.C @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | |
children |
line wrap: on
line source
// { dg-do compile } // { dg-options "-std=c++2a" } consteval int foo () { return 0; } int bar (int (*) ()); auto sz = sizeof (bar (foo)); // { dg-bogus "taking address of an immediate function" } decltype (bar (foo)) baz; // { dg-bogus "taking address of an immediate function" }