File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -242,6 +242,7 @@ $(H2 $(LNAME2 align, $(D align) Attribute))
242
242
243
243
$(GRAMMAR
244
244
$(GNAME AlignAttribute):
245
+ $(D align $(LPAREN) default $(RPAREN))
245
246
$(D align)
246
247
$(D align) $(D $(LPAREN)) $(GLINK2 expression, AssignExpression) $(D $(RPAREN))
247
248
)
@@ -257,15 +258,14 @@ $(GNAME AlignAttribute):
257
258
$(LI struct, union, and class types)
258
259
)
259
260
260
- $(P $(D align) by itself
261
- sets it to the default, which matches the default member alignment
262
- of the companion C compiler.)
261
+ $(P $(D align $(LPAREN) default $(RPAREN)) (re)sets it to the default, which matches the default member alignment
262
+ of the companion C compiler. $(D align) by itself is the same as $(D align $(LPAREN) default $(RPAREN)).)
263
263
264
264
$(SPEC_RUNNABLE_EXAMPLE_COMPILE
265
265
--------
266
266
struct S
267
267
{
268
- align:
268
+ align(default): // same as `align:`
269
269
byte a; // placed at offset 0
270
270
int b; // placed at offset 4
271
271
long c; // placed at offset 8
You can’t perform that action at this time.
0 commit comments