Dale Weiler
|
ea0e2c47d5
|
We don't need to specify "-should fail" because we print the type now (this also makes the description colum shorter)
|
2013-04-21 06:13:25 +00:00 |
|
Dale Weiler
|
9bb586fb5a
|
Add floor to tests defs.qh
|
2013-03-09 05:46:08 +00:00 |
|
Dale Weiler
|
d8d78f61a7
|
Implemented "reverse" enum attribute, e.g enum : reverse { A, B, C, D } -> A,B,C,D = 3,2,1,0
|
2013-03-09 05:07:14 +00:00 |
|
Dale Weiler
|
b971ddec3a
|
Implemented concept of enumeration attributes (can be further extended, but currently only "flag" is implemented as an attribute). An enumeration with a flag attribute will act as a "flagged enumeration", one that automatically handles exponentiation of the constants defined inside it, i.e enum : flag { A, B, C }, A,B,C will equal 2, 4, 8.
|
2013-03-08 08:01:45 +00:00 |
|
Dale Weiler
|
479f3b9343
|
Implemented __builtin_exp
|
2013-03-08 03:46:25 +00:00 |
|
Dale Weiler
|
12340a6bd0
|
Actually generate an ast_call for __builtin_pow for the ** operator, otherwise the operator yeilds a ast_function, making "a ** b" not work, but since it's a function, allows **(a, b). Also added tests for exponentiation operator.
|
2013-03-07 23:05:40 +00:00 |
|
Wolfgang Bumiller
|
a32f59b256
|
hopefully fix an off-by-1 vararg copy issue
|
2013-02-26 16:39:28 +01:00 |
|
Dale Weiler
|
1e60bafcdc
|
Aliases to aliases is a bad idea, revert. Added better tests to show unused aliases
|
2013-02-06 09:28:42 +00:00 |
|
Dale Weiler
|
e464cc1ea6
|
Implemented generalized attribute aliases. You can now alias functions, locals, or globals with [[alias("old_name")]] type new_name;
|
2013-02-06 05:30:09 +00:00 |
|
Dale Weiler
|
9cff2f7b8a
|
perl ops -> pops
|
2013-02-05 17:15:28 +00:00 |
|
Dale Weiler
|
b3e87c3280
|
ast referencing
|
2013-02-05 17:14:56 +00:00 |
|
Dale Weiler
|
fed0f8b6b4
|
Work in progress <=> operator.
|
2013-02-05 16:34:03 +00:00 |
|
Dale Weiler
|
9bf8f9c505
|
Add bitnot test for testsuite.
|
2013-02-02 00:12:46 +00:00 |
|
Dale Weiler
|
a1fac66587
|
Added definition file for test-suite, used by default by the test system. To override the defs globally, use -defs=file from the command line for the test-suite. To override the defs per-file, use F: -no-defs flag in the test template file.
|
2013-01-30 08:04:56 +00:00 |
|
Dale Weiler
|
b9fcd64a1f
|
Spiceing up the __VA_ARGS__ test
|
2013-01-27 13:05:01 +00:00 |
|
Dale Weiler
|
6fc5b32123
|
Fix warning, and better tests for __VA_ARGS__
|
2013-01-27 13:03:02 +00:00 |
|
Dale Weiler
|
b4fbba5708
|
Implement subscripting for __VA_ARGS__, and added test-case. This only works on INTCONST for now.
|
2013-01-27 12:55:56 +00:00 |
|
Dale Weiler
|
531fbaf28c
|
Remove user-defined success/failure messages for the testsuite. Instead print an aligned to console string containing the tmpl file name. This closes #90.
|
2013-01-27 08:39:42 +00:00 |
|
Wolfgang Bumiller
|
62af1659eb
|
adding testcase for various parentheses and ternary combinations which to test the newly refactored code; includes some cases not hit by xonotic
|
2013-01-18 15:22:53 +01:00 |
|
Wolfgang Bumiller
|
8697fa59f3
|
Added counter-stability test to the varargs testcase
|
2013-01-17 10:32:43 +01:00 |
|
Wolfgang Bumiller
|
a5029a510a
|
test for vec/float
|
2013-01-13 20:49:27 +01:00 |
|
Wolfgang Bumiller
|
61b777f575
|
vararg testcases
|
2013-01-12 16:37:26 +01:00 |
|
Dale Weiler
|
f6197a965c
|
Better enumeration test
|
2013-01-10 20:50:42 +00:00 |
|
Wolfgang Bumiller
|
4a063d3518
|
enum testcase
|
2013-01-10 21:38:32 +01:00 |
|
Wolfgang Bumiller
|
16e789419d
|
testcase for mul_vf/fv
|
2013-01-08 21:55:34 +01:00 |
|
Wolfgang Bumiller
|
3f3ed9b6f0
|
added a testcase for -Olocal-temps
|
2013-01-07 19:09:15 +01:00 |
|
Dale Weiler
|
a421d9a33b
|
Implemented computed goto + added goto test for testsuite (tests both normal and computed goto statements).
|
2013-01-02 21:32:57 +00:00 |
|
Wolfgang Bumiller
|
8331a2982d
|
tests for __VA_ARGS__
|
2013-01-02 14:16:42 +01:00 |
|
Wolfgang Bumiller
|
9315577be6
|
noref testcase must use -Wno-uninitialized-global
|
2012-12-28 19:09:06 +01:00 |
|
Wolfgang Bumiller
|
fcdff3180a
|
Tests for the previous vector-liferange change
|
2012-12-24 12:43:16 +01:00 |
|
Wolfgang Bumiller
|
041f8a86d7
|
utf8 tests
|
2012-12-23 10:23:42 +01:00 |
|
Wolfgang Bumiller
|
eb952f1199
|
fix -fshort-logic to cast to true boolean values
|
2012-12-22 20:05:15 +01:00 |
|
Wolfgang Bumiller
|
7cf0ba5aa8
|
'noreturn' is now an attribute and parsed as [[noreturn]]
|
2012-12-22 18:09:56 +01:00 |
|
Wolfgang Bumiller
|
949cd9bb06
|
Test cases for -fcorrect-logic
|
2012-12-22 17:55:55 +01:00 |
|
Wolfgang Bumiller
|
d858237010
|
Adding truth-flags testsuite for strings
|
2012-12-22 17:36:06 +01:00 |
|
Dale Weiler
|
0be55824d4
|
Implemented preprocessing error directive tests (should fail)
|
2012-12-21 04:48:01 +00:00 |
|
Wolfgang Bumiller
|
712be84bba
|
Testcases for -ftrue-empty-strings and -ffalse-empty-strings
|
2012-12-20 20:43:58 +01:00 |
|
Wolfgang Bumiller
|
79f3f980e9
|
vector initialization tests
|
2012-12-20 14:12:22 +01:00 |
|
Wolfgang Bumiller
|
a301796186
|
Added tests for 'noreturn'
|
2012-12-20 12:00:39 +01:00 |
|
Wolfgang (Blub) Bumiller
|
dd6f415a04
|
Tests for perl-logic _types_
|
2012-12-18 16:57:38 +01:00 |
|
Dale Weiler
|
60807b677c
|
Fix testsuite. Also added an additional test to the ternary stuff
|
2012-12-16 22:07:33 +00:00 |
|
Wolfgang (Blub) Bumiller
|
36fe4e2729
|
noref -compile testcase
|
2012-12-04 12:50:38 +01:00 |
|
Dale Weiler
|
4d1514257e
|
Added preprocessor test
|
2012-12-02 23:16:44 +00:00 |
|
Dale Weiler
|
41881823b7
|
Add whitespace to ternary-fte template so it matches (expected behaviour)
|
2012-12-02 12:03:02 +00:00 |
|
Wolfgang (Blub) Bumiller
|
d39df54f8a
|
Updating ternary testcase to use -fcorrect-ternary - added fte-style test as well for it
|
2012-12-02 11:52:25 +01:00 |
|
Wolfgang (Blub) Bumiller
|
b966cd4f4d
|
More ternary fixes
|
2012-12-01 00:50:04 +01:00 |
|
Wolfgang (Blub) Bumiller
|
e6928c6b78
|
Checking in test for nested ternaries; this is more a test of the ast than the parser
|
2012-11-26 14:12:56 +01:00 |
|
Dale Weiler
|
967254f7f2
|
Fix the testsuite to properly error on failed loads
|
2012-11-25 21:12:26 +00:00 |
|
Wolfgang (Blub) Bumiller
|
4b71b74c6a
|
Add the array tests, seem to have forgotten to add those...
|
2012-11-25 21:41:30 +01:00 |
|
Wolfgang (Blub) Bumiller
|
2884556fe3
|
multiple dots to start a field type, ie ..float for a fieldpointer field
|
2012-11-25 17:37:54 +01:00 |
|