comparison gcc/testsuite/g++.dg/cpp2a/consteval16.C @ 152:2b5abeee2509

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents
children
comparison
equal deleted inserted replaced
145:1830386684a0 152:2b5abeee2509
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" }