From 6813c44c39bd3cfbd8ecfe02c7f69e69a1ad7025 Mon Sep 17 00:00:00 2001 From: Eric Ludlam Date: Sat, 11 Apr 2015 21:13:02 -0400 Subject: [PATCH] New test files combining macros and EDE --- .../cedet/semantic/testwithede/testede.c | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 test/manual/cedet/cedet/semantic/testwithede/testede.c diff --git a/test/manual/cedet/cedet/semantic/testwithede/testede.c b/test/manual/cedet/cedet/semantic/testwithede/testede.c new file mode 100644 index 00000000000..d51876d0cb7 --- /dev/null +++ b/test/manual/cedet/cedet/semantic/testwithede/testede.c @@ -0,0 +1,34 @@ +/** testede.c --- Macro tests with an EDE project + * + * Copyright (C) 2015 Eric Ludlam + * + * Author: Eric Ludlam + * + * 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)) -- 2.39.2