diff options
author | Sean Callanan <scallanan@apple.com> | 2011-12-08 23:45:45 +0000 |
---|---|---|
committer | Sean Callanan <scallanan@apple.com> | 2011-12-08 23:45:45 +0000 |
commit | 12014a04711a9c3efa5aed1c80b9c4288ab209eb (patch) | |
tree | 6367e6c054d46d1dd42ad16a693065fe2b402a65 /lldb/test/lang/c/shared_lib/foo.h | |
parent | 7c01c1af1978527fdab4d5542d60aeff85cb4221 (diff) | |
download | bcm5719-llvm-12014a04711a9c3efa5aed1c80b9c4288ab209eb.tar.gz bcm5719-llvm-12014a04711a9c3efa5aed1c80b9c4288ab209eb.zip |
If the expression parser is unable to complete a TagDecl
in the context in which it was originally found, the
expression parser now goes hunting for it in all modules
(in the appropriate namespace, if applicable). This means
that forward-declared types that exist in another shared
library will now be resolved correctly.
Added a test case to cover this. The test case also tests
"frame variable," which does not have this functionality
yet.
llvm-svn: 146204
Diffstat (limited to 'lldb/test/lang/c/shared_lib/foo.h')
-rw-r--r-- | lldb/test/lang/c/shared_lib/foo.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lldb/test/lang/c/shared_lib/foo.h b/lldb/test/lang/c/shared_lib/foo.h new file mode 100644 index 00000000000..78b3c124538 --- /dev/null +++ b/lldb/test/lang/c/shared_lib/foo.h @@ -0,0 +1,12 @@ +struct foo; + +struct sub_foo +{ + int sub_1; + char *sub_2; +}; + +struct foo *GetMeAFoo(); +struct sub_foo *GetMeASubFoo (struct foo *in_foo); + + |