mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
fix Issue 23143 - ImportC: forward enum declarations need to be supported
This commit is contained in:
parent
b156f0a9fc
commit
a0f6f845ec
5 changed files with 46 additions and 3 deletions
|
@ -697,3 +697,19 @@ int i;
|
|||
_Static_assert( sizeof (s).x == sizeof(int), "" );
|
||||
_Static_assert( sizeof (fn)() == sizeof(int), "" );
|
||||
_Static_assert( sizeof (i)++ == sizeof(int), "" );
|
||||
|
||||
// https://issues.dlang.org/show_bug.cgi?id=23143
|
||||
|
||||
enum E1;
|
||||
|
||||
enum E1 {
|
||||
m3,
|
||||
m4 = m3
|
||||
};
|
||||
|
||||
typedef enum E2 T1;
|
||||
|
||||
enum E2 {
|
||||
m1,
|
||||
m2 = m1
|
||||
};
|
||||
|
|
|
@ -25,7 +25,6 @@ fail_compilation/failcstuff1.c(260): Error: identifier or `(` expected
|
|||
fail_compilation/failcstuff1.c(301): Error: illegal type combination
|
||||
fail_compilation/failcstuff1.c(352): Error: found `2` when expecting `:`
|
||||
fail_compilation/failcstuff1.c(352): Error: found `:` instead of statement
|
||||
fail_compilation/failcstuff1.c(400): Error: `enum ENUM` has no members
|
||||
fail_compilation/failcstuff1.c(450): Error: static array parameters are not supported
|
||||
fail_compilation/failcstuff1.c(450): Error: static or type qualifier used in non-outermost array type derivation
|
||||
fail_compilation/failcstuff1.c(451): Error: static or type qualifier used in non-outermost array type derivation
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue