ldc/tests/codegen/asm_output.d
Johan Engelen 8ac39a4f2d Relocate the Lit-based testsuite to /tests (from /tests/ir).
The plan is to have subdirs for grouping tests. For example, for PGO we could create the /tests/pgo folder. Lit automatically picks up on subdirs.
2016-02-29 00:34:37 +01:00

10 lines
313 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 main() {
return 42;
// Try to keep these very simple checks independent of architecture:
// LLVM: ret i32 42
// ASM: $42
// ASM: ret
}