This website requires JavaScript.
Explore
Help
Sign in
qf
/
quakeforge
Watch
0
Star
0
Fork
You've already forked quakeforge
0
mirror of
https://git.code.sf.net/p/quake/quakeforge
synced
2024-11-10 07:11:41 +00:00
Code
Issues
Projects
Releases
Packages
Wiki
Activity
master
quakeforge
/
tools
/
qfcc
/
test
/
enum.r
14 lines
92 B
R
Raw
Permalink
Normal View
History
Unescape
Escape
Test compiling enums It turns out the enumerator type and enum type wind up with different instances of the same type (due to the way type chaining works). This results in infinite recursion in assign_expr and check_types_compatible.
2019-06-09 22:17:41 +00:00
typedef
enum
{
NO
=
0
,
YES
}
BOOL
;
int
main
(
)
{
BOOL
b
;
Fix assigning int to enum or enum to int Or float, for v6 progs.
2019-06-09 23:46:40 +00:00
b
=
0
;
Test compiling enums It turns out the enumerator type and enum type wind up with different instances of the same type (due to the way type chaining works). This results in infinite recursion in assign_expr and check_types_compatible.
2019-06-09 22:17:41 +00:00
b
=
YES
;
return
!
b
;
}
Reference in a new issue
Copy permalink