Skip to content

Commit

Permalink
fbc-tests: comments: new tests and wrap known bugs with #if ENABLE_CH…
Browse files Browse the repository at this point in the history
…ECK_BUGS
  • Loading branch information
jayrm committed Mar 10, 2018
1 parent edce316 commit 03a1273
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions tests/comments/singleline.bas
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

0 comments on commit 03a1273

Please sign in to comment.