mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-06-20 07:03:05 -03:00
Reorganize tests into a real spec suite
This commit is contained in:
19
spec/tests/c/test_preproc_file5.txt
Normal file
19
spec/tests/c/test_preproc_file5.txt
Normal file
@ -0,0 +1,19 @@
|
||||
Preprocessor macros should appear only at the beginning of the line.
|
||||
Otherwise we should produce an error token.
|
||||
|
||||
---input---
|
||||
foo(); #define FOO 0
|
||||
|
||||
---tokens---
|
||||
'foo' Name
|
||||
'(' Punctuation
|
||||
')' Punctuation
|
||||
';' Punctuation
|
||||
' ' Text.Whitespace
|
||||
'#' Error
|
||||
'define' Name
|
||||
' ' Text.Whitespace
|
||||
'FOO' Name
|
||||
' ' Text.Whitespace
|
||||
'0' Literal.Number.Integer
|
||||
'\n' Text.Whitespace
|
Reference in New Issue
Block a user