-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fbc-tests: comments: new tests and wrap known bugs with #if ENABLE_CH…
…ECK_BUGS
- Loading branch information
Showing
1 changed file
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
' TEST_MODE : COMPILE_ONLY_OK | ||
|
||
' this won't be parsed | ||
rem this won't be parsed | ||
|
||
' ':' statement separator ignored in comments | ||
' comment : invalid_statement | ||
rem comment : invalid_statement | ||
|
||
rem comment is OK | ||
rem rem comment is OK | ||
' comment is OK | ||
'' comment is OK | ||
''' comment is OK | ||
|
||
' end of line continuation is meaningless in comments | ||
' comment _ | ||
#define X1 | ||
#ifndef X1 | ||
#error X1 should be defined | ||
#endif | ||
|
||
rem end of line continuation is meaningless in comments | ||
rem comment _ | ||
#define X1 | ||
#ifndef X1 | ||
#error X1 should be defined | ||
#endif | ||
|
||
#if ENABLE_CHECK_BUGS | ||
|
||
#print enable check for #866 fbc throws lexer errors in comments stating with $ | ||
#print see bug #866 at https://sourceforge.net/p/fbc/bugs/866/ | ||
#print introduced by #832 QB type suffixes allowed on any keywords | ||
#print see bug #832 at https://sourceforge.net/p/fbc/bugs/832/ | ||
|
||
|
||
'$=f# | ||
'$=f# | ||
'$=f# | ||
'$=f# | ||
'$=f# | ||
|
||
rem ${f! | ||
rem $=f# | ||
rem $^f$ | ||
rem $-f% | ||
rem $@f& | ||
|
||
#endif |