This website requires JavaScript.
Explore
Help
Sign in
fdo-mirrors
/
mesa
Watch
1
Star
0
Fork
You've already forked mesa
0
mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced
2025-12-22 11:20:11 +01:00
Code
Issues
Projects
Releases
Packages
Wiki
Activity
Actions
1
660bda057a
mesa
/
tests
/
015-define-object-with-parens.c
5 lines
48 B
C
Raw
Normal View
History
Unescape
Escape
Add test for an object-like macro with a definition beginning with '(' Our current parser sees "#define foo (" as an identifier token followed by a '(' token and parses this as a function-like macro. That would be correct for "#define foo(" but the preprocessor specification treats this whitespace as significant here so this test currently fails.
2010-05-13 10:26:58 -07:00
#
define foo ( ) 1
foo
(
)
Add some whitespace variations to test 15. This shows two minor failures in our current parsing (resulting in whitespace-only changes, oso not that significant): 1. We are inserting extra whitespace between tokens not originally separated by whitespace in the replacement list of a macro definition. 2. We are swallowing whitespace separating tokens in the general content.
2010-05-13 10:41:53 -07:00
#
define bar () 2
bar
(
)
Reference in a new issue
Copy permalink