mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
22 lines
388 B
D
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;
|
|
}
|
|
}
|