projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac070e8
)
Add test for composed invocation of function-like macros.
author
Carl Worth
<cworth@cworth.org>
Fri, 14 May 2010 17:01:44 +0000
(10:01 -0700)
committer
Carl Worth
<cworth@cworth.org>
Fri, 14 May 2010 18:50:33 +0000
(11:50 -0700)
This is a case like "foo(bar(x))" where both foo and bar are defined
function-like macros. This is not yet parsed correctly so this test
fails.
tests/021-define-func-compose.c
[new file with mode: 0644]
patch
|
blob
diff --git a/tests/021-define-func-compose.c
b/tests/021-define-func-compose.c
new file mode 100644
(file)
index 0000000..
21ddd0e
--- /dev/null
+++ b/
tests/021-define-func-compose.c
@@ -0,0
+1,3
@@
+#define bar(x) (1+(x))
+#define foo(y) (2*(y))
+foo(bar(3))