blob: 8440462f32642fffc0a7fc59e7c8e32be3a5d2f3 [file] [log] [blame]
define COMMAND
$(1)
$(1)
endef
all:
$(call COMMAND,@true #TEST-FAIL)
$(call COMMAND,-exit 4)
$(call COMMAND,@-exit 1 # TEST-FAIL)
$(call COMMAND,-@exit 1 # TEST-FAIL)
$(call COMMAND,+exit 0)
$(call COMMAND,+-exit 1)
$(call COMMAND,@+exit 0 # TEST-FAIL)
$(call COMMAND,+@exit 0 # TEST-FAIL)
$(call COMMAND,-+@exit 1 # TEST-FAIL)
$(call COMMAND,+-@exit 1 # TEST-FAIL)
$(call COMMAND,@+-exit 1 # TEST-FAIL)
$(call COMMAND,@+-@+-exit 1 # TEST-FAIL)
$(call COMMAND,@@++exit 0 # TEST-FAIL)
@echo TEST-PASS