Skip to content

Commit 9c8c78c

Browse files
authored
Fix #4174 - Invalid C enum in ImportC spec example (#4175)
1 parent d2b8cf8 commit 9c8c78c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spec/importc.dd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -379,9 +379,9 @@ $(H2 $(LNAME2 implementation, Implementation))
379379
be an integral type and evaluate to an integer value that fits in an `int`.)
380380

381381
---
382-
enum E { -10, 0x81231234 }; // ok
383-
enum F { 0x812312345678 }; // error, doesn't fit in int
384-
enum G { 1.0 }; // error, not integral type
382+
enum E { a = -10, b = 0x81231234 }; // ok
383+
enum F { c = 0x812312345678 }; // error, doesn't fit in int
384+
enum G { d = 1.0 }; // error, not integral type
385385
---
386386

387387
$(P The enumerated type is `int`.)

0 commit comments

Comments
 (0)