dmd/compiler/test/fail_compilation/compgoto.i
2023-12-30 13:58:15 +08:00

18 lines
355 B
OpenEdge ABL

/* TEST_OUTPUT:
---
fail_compilation/compgoto.i(105): Error: unary `&&` computed goto extension is not supported
fail_compilation/compgoto.i(106): Error: `goto *` computed goto extension is not supported
---
*/
// https://gcc.gnu.org/onlinedocs/gcc/Labels-as-Values.html
#line 100
void test()
{
void *ptr;
foo:
ptr = &&foo;
goto *ptr;
}