mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-04 00:55:49 +03:00
11 lines
281 B
D
11 lines
281 B
D
// RUN: %ldc -checkaction=halt -output-ll -of=%t.ll %s && FileCheck %s < %t.ll
|
|
|
|
// CHECK: define {{.*}}_D16checkaction_halt3foo
|
|
void foo(int x)
|
|
{
|
|
assert(x, "msg");
|
|
|
|
// CHECK: assertFailed:
|
|
// CHECK-NEXT: call void @llvm.trap()
|
|
// CHECK-NEXT: unreachable
|
|
}
|