mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-05 09:31:03 +03:00
17 lines
432 B
D
17 lines
432 B
D
// Make sure exported functions can be cross-module inlined without exporting the local function copy.
|
|
|
|
// RUN: %ldc -O -release -enable-cross-module-inlining -output-ll -of=%t.ll -I%S/inputs %s
|
|
// RUN: FileCheck %s < %t.ll
|
|
|
|
import export2;
|
|
|
|
// CHECK-NOT: _D7export23fooFZi
|
|
|
|
// CHECK: define {{.*}}_D26export_crossModuleInlining3barFZi
|
|
int bar()
|
|
{
|
|
// CHECK-NEXT: ret i32 666
|
|
return foo();
|
|
}
|
|
|
|
// CHECK-NOT: _D7export23fooFZi
|