2 # Compile at the maximum warning level to probe for warnings
4 MCS=../mcs/mcs.exe --wlevel 4
11 error=`echo $$i | sed -e 's/cs*//' -e 's/.cs//' -e 's/-.*//'`; \
14 error=`echo $$i | sed -e 's/cs*//' -e 's/.cs//'`; \
17 echo $(MCS) --probe $$error $$i; \
18 $(MCS) --probe $$error 1 $$i > /dev/null; \
20 if test $$code != 123; then \
21 echo Code is: $$code; \
22 if [ x$$code = x124 ]; then \
23 echo "Compiler failed to flag $$i"; \
25 echo "Compiler failed to compile $$i"; \
27 flist="$$flist $$i"; \
34 echo "The following tests failed: $$flist"; \
36 echo All tests passed; \