blob: e94bb1644c3e4418edcad7635c3dd5e25dac032c [file] [log] [blame]
Reid Spencer2461b732006-11-04 00:49:52 +00001#!/bin/sh
2#
3# Program: notcast
4#
5# Synopsis: Returns 0 if the input does not contain a cast operator
6#
Reid Spencer023fa412006-11-04 00:58:39 +00007# Syntax: notcast tailexpr
8#
9# tailexpr - optionally allows a regular expression to go at the end
10#
Reid Spencer2461b732006-11-04 00:49:52 +000011
Reid Spencer023fa412006-11-04 00:58:39 +000012if grep '\(\([sz]ext\)\|\(trunc\)\|\(fp2[us]int\)\|\([us]int2fp\)\|\(bitconvert\)\|\(fpext\)\|\(fptrunc\)\)'"$1"
Reid Spencer2461b732006-11-04 00:49:52 +000013then exit 1
14else exit 0
15fi