Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit a6c919f

Browse files
committedNov 23, 2024
Add test of macro-generated inline namespace
1 parent 3300618 commit a6c919f

File tree

3 files changed

+37
-0
lines changed

3 files changed

+37
-0
lines changed
 

‎bindgen-tests/tests/expectations/tests/inline_namespace_macro.rs

Lines changed: 24 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// bindgen-flags: --enable-cxx-namespaces -- -std=c++11
2+
3+
#include "namespace/nsdefine.h"
4+
5+
BEGIN_NAMESPACE
6+
7+
class duration {};
8+
9+
END_NAMESPACE
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#pragma once
2+
3+
#define BEGIN_NAMESPACE namespace repro { inline namespace __1 {
4+
#define END_NAMESPACE } }

0 commit comments

Comments
 (0)
Please sign in to comment.