Commit f5fe20ef authored by hjk's avatar hjk Committed by hjk
Browse files

debugger: add a pointer to global data to manual test



Change-Id: I6ebb0058f5c1717c2dd4224107d25544005a3116
Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent 30ab7ea0
...@@ -4965,16 +4965,19 @@ namespace basic { ...@@ -4965,16 +4965,19 @@ namespace basic {
void testFunctionPointerHelper() {} void testFunctionPointerHelper() {}
static int someData;
void testFunctionPointer() void testFunctionPointer()
{ {
typedef void (*func_t)(); typedef void (*func_t)();
func_t f2 = testFunctionPointerHelper; func_t f2 = testFunctionPointerHelper;
int *p = &someData;
BREAK_HERE; BREAK_HERE;
// CheckType f2 basic::func_t. // CheckType f2 basic::func_t.
// Continue. // Continue.
// Check there's a valid display for f2. // Check there's a valid display for f2.
dummyStatement(&f2); dummyStatement(&f2, p);
} }
void testPassByReferenceHelper(Foo &f) void testPassByReferenceHelper(Foo &f)
......
Supports Markdown
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