diff options
Diffstat (limited to 'llvm/test/Reduce/Inputs/remove-args.py')
-rwxr-xr-x | llvm/test/Reduce/Inputs/remove-args.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/llvm/test/Reduce/Inputs/remove-args.py b/llvm/test/Reduce/Inputs/remove-args.py new file mode 100755 index 00000000000..fea62c3174e --- /dev/null +++ b/llvm/test/Reduce/Inputs/remove-args.py @@ -0,0 +1,16 @@ +import sys + +InterestingArgumentPresent = False +FunctionCallPresent = False + +input = open(sys.argv[1], "r") +for line in input: + if "%interesting" in line: + InterestingArgumentPresent = True + if "call void @interesting" in line: + FunctionCallPresent = True + +if InterestingArgumentPresent and FunctionCallPresent: + sys.exit(0) # Interesting! + +sys.exit(1) |