This repository has been archived by the owner on Oct 12, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 421
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Issue 19433 - Don't consume --DRT-* options if rt_cmdline_enabled…
… is false
- Loading branch information
1 parent
072b7a4
commit ae9581c
Showing
4 changed files
with
28 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
include ../common.mak | ||
|
||
TESTS:=test19433 | ||
|
||
.PHONY: all clean | ||
all: $(addprefix $(ROOT)/,$(addsuffix .done,$(TESTS))) | ||
|
||
$(ROOT)/%: $(SRC)/%.d | ||
$(QUIET)$(DMD) $(DFLAGS) -of$@ $< | ||
|
||
$(ROOT)/test19433.done: $(ROOT)/test19433 | ||
@echo Testing test19433 | ||
$(QUIET)$(ROOT)/test19433 --DRT-dont-eat-me | ||
@touch $@ | ||
|
||
clean: | ||
rm -rf $(ROOT) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
extern(C) __gshared bool rt_cmdline_enabled = false; | ||
|
||
void main(string[] args) | ||
{ | ||
assert(args.length == 2); | ||
assert(args[1] == "--DRT-dont-eat-me"); | ||
} |