summaryrefslogtreecommitdiff
path: root/libbindgen/tests/headers/bad-namespace-parenthood-inheritance.hpp
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2016-12-23 09:51:23 -0800
committerGitHub <noreply@github.com>2016-12-23 09:51:23 -0800
commit3ba3a76f8c7f393c81bc14eb497ae2b3047ead98 (patch)
treee08ab5ab12af804ac33a11cf6947f719a13d67e7 /libbindgen/tests/headers/bad-namespace-parenthood-inheritance.hpp
parentcbc03042403029d3709290304b8804fec1d21bb9 (diff)
parentb93faf9015e91303a9cfb14281c1ebe5ca877acd (diff)
Auto merge of #360 - emilio:base, r=fitzgen
Don't assume that base classes are already resolved. Since it may not be the case. Fixes #359 Also fixes a few other test cases in the codebase that had the wrong namespace relationship. r? @fitzgen
Diffstat (limited to 'libbindgen/tests/headers/bad-namespace-parenthood-inheritance.hpp')
-rw-r--r--libbindgen/tests/headers/bad-namespace-parenthood-inheritance.hpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/libbindgen/tests/headers/bad-namespace-parenthood-inheritance.hpp b/libbindgen/tests/headers/bad-namespace-parenthood-inheritance.hpp
new file mode 100644
index 00000000..ce21a401
--- /dev/null
+++ b/libbindgen/tests/headers/bad-namespace-parenthood-inheritance.hpp
@@ -0,0 +1,15 @@
+namespace std
+{
+ template < typename > struct char_traits;
+}
+namespace __gnu_cxx
+{
+ template < typename > struct char_traits;
+}
+namespace std
+{
+ template < class _CharT > struct char_traits:__gnu_cxx::char_traits <
+ _CharT >
+ {
+ };
+}