summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2010-05-26 17:01:57 -0700
committerCarl Worth <cworth@cworth.org>2010-05-26 17:01:57 -0700
commit7db2402a8009772a3f10d19cfc7f30be9ee79295 (patch)
treeafa47ca72dc2395f01fa84ecab4ee36754bdaa70 /tests
parent95951ea7bb8728cf54ae4136cb59d0af9e8a06bd (diff)
Add support (and test) for an object-to-function chain with the parens in the content.
That is, the following case: #define foo(x) (x) #define bar bar(baz) which now works with this (ugly) commit. I definitely want to come up with something cleaner than this.
Diffstat (limited to 'tests')
-rw-r--r--tests/055-define-chain-obj-to-func-parens-in-text.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/055-define-chain-obj-to-func-parens-in-text.c b/tests/055-define-chain-obj-to-func-parens-in-text.c
new file mode 100644
index 0000000000..00f2c2346d
--- /dev/null
+++ b/tests/055-define-chain-obj-to-func-parens-in-text.c
@@ -0,0 +1,3 @@
+#define failure() success
+#define foo failure
+foo()