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