Commit 31ed0302 authored by Eric Ludlam's avatar Eric Ludlam Committed by Stefan Monnier

* 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>
parent 0f7163ab
......@@ -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")
}
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment