mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Enum fixes
This commit is contained in:
24
resources/tests/enum_errors.c3
Normal file
24
resources/tests/enum_errors.c3
Normal file
@@ -0,0 +1,24 @@
|
||||
|
||||
enum EnumWithErrorWithMissingName : int (int)
|
||||
// @error The function parameter must be named
|
||||
{
|
||||
TEST
|
||||
}
|
||||
|
||||
enum EnumWithErrorData : int (int
|
||||
// @error Unexpected end of parameter list
|
||||
{
|
||||
TEST
|
||||
}
|
||||
|
||||
enum EnumTestOverflow
|
||||
{
|
||||
VALUE = 0x80000000,
|
||||
// @error does not fit into 'int'
|
||||
}
|
||||
|
||||
enum EnumTestErrorType : float
|
||||
// @error The enum type must be an integer type not 'float'
|
||||
{
|
||||
VALUE_BOOM
|
||||
}
|
||||
Reference in New Issue
Block a user