repo.or.cz
/
llvm-core.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[InstCombine] Signed saturation patterns
[llvm-core.git]
/
utils
/
lit
/
tests
/
Inputs
/
shtest-shell
/
check_args.py
blob
2f7a2503b97625bb166b02da59036599f4d28e16
1
#!/usr/bin/env python
2
3
import
argparse
4
import
platform
5
6
parser
=
argparse
.
ArgumentParser
()
7
parser
.
add_argument
(
"--my_arg"
,
"-a"
)
8
9
args
=
parser
.
parse_args
()
10
11
answer
= (
platform
.
system
() ==
"Windows"
and
12
args
.
my_arg
==
"/dev/null"
and
"ERROR"
)
or
"OK"
13
14
print
(
answer
)