We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da1c804 commit 97f4eebCopy full SHA for 97f4eeb
compiler/test/runnable/fix20410.d
@@ -16,4 +16,9 @@ void main()
16
static assert(A == B);
17
static assert(A == C);
18
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);
24
}
compiler/test/runnable/imports/imp20410.c
@@ -23,3 +23,8 @@ int function()
#define B A
#define C (A)
25
#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