mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-06 10:57:35 +03:00

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.
10 lines
313 B
D
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
|
|
}
|