Skip to content

Commit 97f4eeb

Browse files
committed
check issue #20194
1 parent da1c804 commit 97f4eeb

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

compiler/test/runnable/fix20410.d

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,9 @@ void main()
1616
static assert(A == B);
1717
static assert(A == C);
1818
static assert(A == D);
19+
20+
// https://github.com/dlang/dmd/issues/20194
21+
// not fully references that but the macro part
22+
static assert(CONSTANT == 6);
23+
static assert(CONSTANT_PLUS == 7);
1924
}

compiler/test/runnable/imports/imp20410.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,8 @@ int function()
2323
#define B A
2424
#define C (A)
2525
#define D (B)
26+
27+
28+
// https://github.com/dlang/dmd/issues/20194
29+
#define CONSTANT 6
30+
#define CONTSTANT_PLUS (6 + 1)

0 commit comments

Comments
 (0)