mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-05 01:20:51 +03:00
10 lines
330 B
D
10 lines
330 B
D
// RUN: %ldc -c -output-ll -of=%t.ll %s && FileCheck %s --check-prefix LLVM < %t.ll
|
|
// RUN: %ldc -c -output-s -of=%t.s %s && FileCheck %s --check-prefix ASM < %t.s
|
|
|
|
// Try to keep these very simple checks independent of architecture.
|
|
|
|
// ASM: foofoofoofoo:
|
|
extern(C) int foofoofoofoo() {
|
|
// LLVM: ret i32 42
|
|
return 42;
|
|
}
|