]> git.eshelyaron.com Git - emacs.git/commitdiff
New test files combining macros and EDE
authorEric Ludlam <eric@siege-engine.com>
Sun, 12 Apr 2015 01:13:02 +0000 (21:13 -0400)
committerEdward John Steere <edward.steere@gmail.com>
Wed, 25 Jan 2017 15:47:55 +0000 (17:47 +0200)
test/manual/cedet/cedet/semantic/testwithede/testede.c [new file with mode: 0644]

diff --git a/test/manual/cedet/cedet/semantic/testwithede/testede.c b/test/manual/cedet/cedet/semantic/testwithede/testede.c
new file mode 100644 (file)
index 0000000..d51876d
--- /dev/null
@@ -0,0 +1,34 @@
+/** testede.c --- Macro tests with an EDE project
+ *
+ * Copyright (C) 2015 Eric Ludlam
+ *
+ * Author: Eric Ludlam <zappo@ballista>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see http://www.gnu.org/licenses/.
+ */
+
+#define macro_used_as_param B
+
+#define macro_with_param(ARG) int ARG (int b);
+
+
+macro_with_param(A)
+
+macro_with_param(macro_used_as_param)
+
+macro_with_param(EDEPART)
+
+macro_with_param(EDEHEADERVAR)
+
+macro_with_param(EDEHEADERMACRO(E))