d->// -2-
; // #2# ( "bbb" )
}
+
+// #include files inside a namespace
+// David Engster <deng@randomsample.de>
+// See revisions 8034-8037 which implement this.
+
+namespace another {
+ #include "testdoublens.hpp"
+}
+
+void foo(void) {
+
+ another::// -3-
+ ; // #3# ( "Name1" "a" "stage3_Foo" )
+
+ another::Name1::Name2::Foo a;
+
+ a.// -4-
+ ; // #4# ( "Mumble" "get" )
+}
+
+// What happens if a type your looking for is scoped withing a type,
+// but you are one level into the completion so the originating scope
+// excludes the type of the variable you are completing through?
+// Thanks Martin Stein for this nice example.
+namespace ms_structs
+{
+ struct aaa
+ {
+ int xx;
+ };
+ struct bbb
+ {
+ struct aaa yy;
+ };
+}
+int fun()
+{
+ using namespace ms_structs;
+ struct bbb zz;
+ int uu = zz.// -5-
+ ; // #5# ( "yy" )
+ int kk = zz.yy.// -6-
+ ; // #6# ( "xx" )
+}
\ No newline at end of file