summaryrefslogtreecommitdiff
path: root/tests/headers/inline_namespace_no_ns_enabled.hpp
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <emilio@crisal.io>2017-07-06 11:20:42 +0200
committerEmilio Cobos Álvarez <emilio@crisal.io>2017-07-06 11:20:42 +0200
commite9381670d610d4525a89b3dc65d43a58329a4aa5 (patch)
tree924c59c7dc246c2a8c2e485ec96b57755ac2c2dc /tests/headers/inline_namespace_no_ns_enabled.hpp
parent9b4bd6bff754e6b654f85fc676288ff660dbc6b3 (diff)
ir: Properly skip inline namespaces when building names.
Fixes #789
Diffstat (limited to 'tests/headers/inline_namespace_no_ns_enabled.hpp')
-rw-r--r--tests/headers/inline_namespace_no_ns_enabled.hpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/headers/inline_namespace_no_ns_enabled.hpp b/tests/headers/inline_namespace_no_ns_enabled.hpp
new file mode 100644
index 00000000..30cd4e9b
--- /dev/null
+++ b/tests/headers/inline_namespace_no_ns_enabled.hpp
@@ -0,0 +1,18 @@
+// bindgen-flags: -- -std=c++11
+
+namespace std {
+inline namespace __cxx11 {
+
+template<typename CharT>
+class basic_string {
+ struct Alloc_hider {
+ void* storage;
+ } hider;
+ unsigned long length;
+ struct {
+ CharT inline_storage[4];
+ };
+};
+
+}
+}