Skip to content

Commit

Permalink
Merge pull request #6994 from luismarques/d16
Browse files Browse the repository at this point in the history
Add MSP430, D_P16 version identifiers
merged-on-behalf-of: Martin Nowak <code@dawg.eu>
  • Loading branch information
dlang-bot committed Aug 8, 2017
2 parents d61411b + 2d32932 commit bcf99db
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/ddmd/cond.d
Original file line number Diff line number Diff line change
Expand Up @@ -642,6 +642,7 @@ extern (C++) final class VersionCondition : DVCondition
"MIPS_EABI",
"MIPS_SoftFloat",
"MIPS_HardFloat",
"MSP430",
"NVPTX",
"NVPTX64",
"RISCV32",
Expand Down
10 changes: 6 additions & 4 deletions test/fail_compilation/reserved_version.d
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
/*
TEST_OUTPUT:
---
fail_compilation/reserved_version.d(105): Error: version identifier `MSP430` is reserved and cannot be set
fail_compilation/reserved_version.d(106): Error: version identifier `D_P16` is reserved and cannot be set
fail_compilation/reserved_version.d(107): Error: version identifier `DigitalMars` is reserved and cannot be set
fail_compilation/reserved_version.d(108): Error: version identifier `GNU` is reserved and cannot be set
fail_compilation/reserved_version.d(109): Error: version identifier `LDC` is reserved and cannot be set
Expand Down Expand Up @@ -100,10 +102,8 @@ fail_compilation/reserved_version.d(201): Error: version identifier `none` is re

// Some extra empty lines to help fixup the manual line numbering after adding new version identifiers





version = MSP430;
version = D_P16;
version = DigitalMars;
version = GNU;
version = LDC;
Expand Down Expand Up @@ -294,3 +294,5 @@ debug = D_NoBoundsChecks;
//debug = assert;
debug = all;
debug = none;
debug = D_P16;
debug = MSP430;

0 comments on commit bcf99db

Please sign in to comment.