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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
152
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
1 // { dg-do compile }
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
2 // { dg-options "-std=c++2a" }
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
3
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
4 consteval int foo () { return 0; }
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
5 int bar (int (*) ());
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
6 auto sz = sizeof (bar (foo)); // { dg-bogus "taking address of an immediate function" }
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
7 decltype (bar (foo)) baz; // { dg-bogus "taking address of an immediate function" }