mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
Test array initializer double demotions
Turns out array inits are very strict about types (bug?).
This commit is contained in:
parent
6ce99afa5b
commit
344d429134
3 changed files with 20 additions and 0 deletions
|
@ -62,9 +62,11 @@ fail_progs_dat=
|
|||
|
||||
test_build_errors=\
|
||||
double-demote-float.r \
|
||||
double-demote-float-ainit.r \
|
||||
double-demote-float-ginit.r \
|
||||
double-demote-float-linit.r \
|
||||
double-demote-int.r \
|
||||
double-demote-int-ainit.r \
|
||||
double-demote-int-ginit.r \
|
||||
double-demote-int-linit.r \
|
||||
double-int-compare.r \
|
||||
|
@ -165,6 +167,12 @@ double-demote-int.run$(EXEEXT): double-demote-int.r Makefile build-compile-fail-
|
|||
double-demote-float.run$(EXEEXT): double-demote-float.r Makefile build-compile-fail-run
|
||||
$(srcdir)/build-compile-fail-run $@ $(QFCC) $(QCFLAGS) $<
|
||||
|
||||
double-demote-int-ainit.run$(EXEEXT): double-demote-int-ainit.r Makefile build-compile-fail-run
|
||||
$(srcdir)/build-compile-fail-run $@ $(QFCC) $(QCFLAGS) $<
|
||||
|
||||
double-demote-float-ainit.run$(EXEEXT): double-demote-float-ainit.r Makefile build-compile-fail-run
|
||||
$(srcdir)/build-compile-fail-run $@ $(QFCC) $(QCFLAGS) $<
|
||||
|
||||
double-demote-int-ginit.run$(EXEEXT): double-demote-int-ginit.r Makefile build-compile-fail-run
|
||||
$(srcdir)/build-compile-fail-run $@ $(QFCC) $(QCFLAGS) $<
|
||||
|
||||
|
|
6
tools/qfcc/test/double-demote-float-ainit.r
Normal file
6
tools/qfcc/test/double-demote-float-ainit.r
Normal file
|
@ -0,0 +1,6 @@
|
|||
double a;
|
||||
int b[] = {1.0d};
|
||||
int main ()
|
||||
{
|
||||
return 1; // test fails if compile succeeds
|
||||
}
|
6
tools/qfcc/test/double-demote-int-ainit.r
Normal file
6
tools/qfcc/test/double-demote-int-ainit.r
Normal file
|
@ -0,0 +1,6 @@
|
|||
double a;
|
||||
int b[] = {1.0d};
|
||||
int main ()
|
||||
{
|
||||
return 1; // test fails if compile succeeds
|
||||
}
|
Loading…
Reference in a new issue