mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-09 12:32:33 +03:00
15 lines
357 B
D
15 lines
357 B
D
// Tests @assumeUsed attribute
|
|
|
|
// RUN: %ldc -c -output-ll -of=%t.ll %s && FileCheck %s < %t.ll
|
|
|
|
// CHECK: @llvm.used = appending global {{.*}} @some_function {{.*}} @some_variable
|
|
|
|
static import ldc.attributes;
|
|
|
|
extern (C): // For easier name mangling
|
|
|
|
@(ldc.attributes.assumeUsed) void some_function()
|
|
{
|
|
}
|
|
|
|
@(ldc.attributes.assumeUsed) int some_variable;
|