From d5883c677d0ffc57ec38e8483428d9ab8b516623 Mon Sep 17 00:00:00 2001 From: Mikko Lehtonen Date: Tue, 13 Nov 2018 00:03:30 +0200 Subject: Fix namespaces with macro names --- tests/headers/namespace.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'tests/headers/namespace.hpp') diff --git a/tests/headers/namespace.hpp b/tests/headers/namespace.hpp index 408207f2..a8e6f8ec 100644 --- a/tests/headers/namespace.hpp +++ b/tests/headers/namespace.hpp @@ -40,3 +40,12 @@ namespace w { C barr(); // <- This is the problematic one } + +#define NAMESPACE foobar +namespace NAMESPACE { + void foo(); +} + +#include "namespace/nsbegin.h" +void bar(); +#include "namespace/nsend.h" -- cgit v1.2.3