aboutsummaryrefslogtreecommitdiff
path: root/test/Preprocessor/function_macro_file.c
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-07-19 00:07:36 +0000
committerChris Lattner <sabre@nondot.org>2007-07-19 00:07:36 +0000
commit0ea793e5e37a7b2283ef0c64676ffc7201b1b417 (patch)
treec90b4762f546d6355aaeb601ca39dc10a16a39d0 /test/Preprocessor/function_macro_file.c
parent76e773a443be9f006610f46529e07d4c8d857680 (diff)
Correctly respect C99 5.1.1.2p4 when searching for the first '(' of
a function-like macro invocation. Patch contributed by Neil Booth. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@40026 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Preprocessor/function_macro_file.c')
-rw-r--r--test/Preprocessor/function_macro_file.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Preprocessor/function_macro_file.c b/test/Preprocessor/function_macro_file.c
new file mode 100644
index 0000000000..eeb9256ec7
--- /dev/null
+++ b/test/Preprocessor/function_macro_file.c
@@ -0,0 +1,5 @@
+/* RUN: clang -E -P %s | grep f
+ */
+
+#include "function_macro_file.h"
+()