1# $NetBSD: directive-elif.mk,v 1.6 2020/11/12 19:46:36 rillig Exp $ 2# 3# Tests for the .elif directive. 4 5# TODO: Implementation 6 7.info begin .elif misspellings tests, part 1 8.if 1 9. info 1-then 10.elif 1 # ok 11. info 1-elif 12.elsif 1 # oops: misspelled 13. info 1-elsif 14.elseif 1 # oops: misspelled 15. info 1-elseif 16.endif 17 18.info begin .elif misspellings tests, part 2 19.if 0 20. info 0-then 21.elif 0 # ok 22. info 0-elif 23.elsif 0 # oops: misspelled 24. info 0-elsif 25.elseif 0 # oops: misspelled 26. info 0-elseif 27.endif 28 29.info begin .elif misspellings tests, part 3 30.if 0 31. info 0-then 32.elsif 0 # oops: misspelled 33. info 0-elsif 34.endif 35.if 0 36. info 0-then 37.elseif 0 # oops: misspelled 38. info 0-elseif 39.endif 40 41.info which branch is taken on misspelling after false? 42.if 0 43. info 0-then 44.elsif 1 45. info 1-elsif 46.elsif 2 47. info 2-elsif 48.else 49. info else 50.endif 51 52.info which branch is taken on misspelling after true? 53.if 1 54. info 1-then 55.elsif 1 56. info 1-elsif 57.elsif 2 58. info 2-elsif 59.else 60. info else 61.endif 62 63# Expect: "if-less elif" 64.elif 0 65 66.if 1 67.else 68# Expect: "warning: if-less elif" 69.elif 70.endif 71 72all: 73