1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-16 09:50:25 +00:00

* test/manual/cedet/tests/testdoublens.cpp: Update from upstream

* test/manual/cedet/tests/testdoublens.hpp:
Merge content from CEDET on SF with extended test points for use with
test/lisp/cedet/semantic-utest-ia.el
Author: Eric Ludlam <zappo@gnu.org>
This commit is contained in:
Eric Ludlam 2019-10-27 20:36:17 -04:00 committed by Stefan Monnier
parent 0f7163ab89
commit 31ed03020c
2 changed files with 55 additions and 4 deletions

View File

@ -39,12 +39,27 @@ namespace Name1 {
return 0;
}
void Foo::publishStuff(int /* a */, int /* b */) // ^2^
void Foo::publishStuff(int a, int b) // ^2^
{
int foo = a;
int bar = b;
}
void Foo::sendStuff(int /* a */, int /* b */) // ^3^
// Test polymorphism on arg types. Note that order is
// mixed to maximize failure cases
void Foo::publishStuff(char a, char b) // ^4^
{
int foo = a;
int bar = b;
}
void Foo::sendStuff(int a, int b) // ^3^
{
int foo = a;
int bar = b;
Foo::publishStuff(1,2)
}
} // namespace Name2
@ -163,3 +178,37 @@ namespace d {
} // namespace f
} // namespace d
// Fully qualified const struct function arguments
class ContainsStruct
{
struct TheStruct
{
int memberOne;
int memberTwo;
};
};
void someFunc(const struct ContainsStruct::TheStruct *foo)
{
foo->// -9-
// #9# ("memberOne" "memberTwo")
}
// Class with structure tag
class ContainsNamedStruct
{
struct _fooStruct
{
int memberOne;
int memberTwo;
} member;
};
void someOtherFunc(void)
{
ContainsNamedStruct *someClass;
// This has to find ContainsNamedStruct::_fooStruct
someClass->member.// -10-
// #10# ("memberOne" "memberTwo")
}

View File

@ -31,7 +31,9 @@ namespace Name1 {
int get();
private:
void publishStuff(int a, int b);
void publishStuff(char /* a */, char /* b */);
void publishStuff(int q, int r); // Purposely different names.
void sendStuff(int a, int b);
@ -58,7 +60,7 @@ namespace a {
class Foo
{
struct Dum {
int diDum;
int diDum;
};
protected: