mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-09 04:15:58 +03:00

Such mangled names aren't affected by a target-specific default (C) prefix, such as `_` on Mac.
11 lines
333 B
D
11 lines
333 B
D
// Tests that 'raw mangles' starting with "\1" are correctly propagated to IR.
|
|
|
|
// RUN: %ldc -output-ll -of=%t.ll %s && FileCheck %s < %t.ll
|
|
|
|
// CHECK: @"\01my$Global" = global i32
|
|
pragma(mangle, "\1my$Global")
|
|
__gshared int myGlobal;
|
|
|
|
// CHECK: define {{.*}} @"\01my$Function"()
|
|
pragma(mangle, "\1my$Function")
|
|
void myFunction() {}
|