mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00

* Fix 23722 - Lambdas are mangled incorrectly when using multiple compilation units, resulting in incorrect code * Update test cases
12 lines
312 B
D
12 lines
312 B
D
// COMPILE_SEPARATELY:
|
|
// EXTRA_SOURCES: imports/test23722b.d
|
|
// REQUIRED_ARGS: -betterC
|
|
// https://issues.dlang.org/show_bug.cgi?id=23722
|
|
// Lambdas are mangled incorrectly when using multiple compilation units, resulting in incorrect code
|
|
import imports.test23722b;
|
|
|
|
bool f() {
|
|
return b;
|
|
}
|
|
|
|
void main() {}
|