summaryrefslogtreecommitdiff
path: root/libbindgen/tests/headers/nested_within_namespace.hpp
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <ecoal95@gmail.com>2016-11-24 22:48:05 +0100
committerEmilio Cobos Álvarez <emilio@crisal.io>2016-11-29 20:36:05 +0100
commit673f9d313a981be3882050849d621bd12f07291c (patch)
tree45ca13a9fd14e25d8ea7581f48e7f1882fca20e0 /libbindgen/tests/headers/nested_within_namespace.hpp
parentebef1423cde4afa8d1f97a6f91ad466642a41b1c (diff)
ir: Don't assume our name is our base name too early when we're in a namespace.
Diffstat (limited to 'libbindgen/tests/headers/nested_within_namespace.hpp')
-rw-r--r--libbindgen/tests/headers/nested_within_namespace.hpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/libbindgen/tests/headers/nested_within_namespace.hpp b/libbindgen/tests/headers/nested_within_namespace.hpp
new file mode 100644
index 00000000..a9b7c1ec
--- /dev/null
+++ b/libbindgen/tests/headers/nested_within_namespace.hpp
@@ -0,0 +1,15 @@
+// bindgen-flags: --enable-cxx-namespaces
+
+namespace foo {
+ class Bar {
+ int foo;
+
+ class Baz {
+ int foo;
+ };
+ };
+
+ class Baz {
+ int baz;
+ };
+}