mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-06 02:45:25 +03:00
9 lines
314 B
D
9 lines
314 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
|
|
|
|
int foo() {
|
|
return 42;
|
|
// Try to keep these very simple checks independent of architecture:
|
|
// LLVM: ret i32 42
|
|
// ASM: {{(\$|#|.long )}}42
|
|
}
|