dmd/compiler/test/fail_compilation/test23159.d
2022-07-09 18:53:07 +02:00

22 lines
388 B
D

// https://issues.dlang.org/show_bug.cgi?id=23159
// REQUIRED_ARGS: -betterC
/*
TEST_OUTPUT:
---
fail_compilation/test23159.d(14): Error: `scope(failure)` cannot be used with -betterC
fail_compilation/test23159.d(18): Error: `scope(success)` cannot be used with -betterC
---
*/
void main()
{
scope(failure)
{
int a;
}
scope(success)
{
int a;
}
}