diff options
author | Mikko Lehtonen <scoopr@iki.fi> | 2018-11-13 00:03:30 +0200 |
---|---|---|
committer | Mikko Lehtonen <scoopr@iki.fi> | 2018-11-13 22:25:40 +0200 |
commit | d5883c677d0ffc57ec38e8483428d9ab8b516623 (patch) | |
tree | d774d2db11d15f4663a537ad4eb5e66fc8f7cf55 /tests/headers/namespace.hpp | |
parent | d5dac094954b017468866129ed502655476d92ef (diff) |
Fix namespaces with macro names
Diffstat (limited to 'tests/headers/namespace.hpp')
-rw-r--r-- | tests/headers/namespace.hpp | 9 |
1 files changed, 9 insertions, 0 deletions
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<float> barr(); // <- This is the problematic one } + +#define NAMESPACE foobar +namespace NAMESPACE { + void foo(); +} + +#include "namespace/nsbegin.h" +void bar(); +#include "namespace/nsend.h" |