Files
clang-p2996/llvm/test/tools/UpdateTestChecks/update_test_checks/Inputs/custom-tool.ll
Nicolai Hähnle 0b779494a8 update_test_checks.py: allow use with custom tools
We have a downstream project with a command-line utility that operates
pretty much exactly like `opt`. So it would make sense for us to
maintain tests with update_test_checks.py with our custom tool
substituted for `opt`, as this change allows.

Differential Revision: https://reviews.llvm.org/D136329
2022-10-27 10:06:01 +02:00

7 lines
138 B
LLVM

; RUN: llvm-extract -S --func=foo %s | FileCheck --check-prefixes=CHECK %s
define i32 @foo(i32 %x) {
%y = add i32 %x, 1
ret i32 %y
}