compile unit, which has an external reference to symbols defined in foo.m, the type query:
in this case, 'expression (NSArray*)array_token'
continues to work.
This test is to accompany http://llvm.org/viewvc/llvm-project?rev=131145&view=rev.
llvm-svn: 131154
20 lines
370 B
C
20 lines
370 B
C
#include <stdio.h>
|
|
|
|
extern int AddElement (char *value);
|
|
extern char *GetElement (int idx);
|
|
extern void *GetArray();
|
|
|
|
int
|
|
main ()
|
|
{
|
|
|
|
int idx = AddElement ("some string");
|
|
void *array_token = GetArray();
|
|
|
|
char *string = GetElement (0); // Set breakpoint here, then do 'expr (NSArray*)array_token'.
|
|
if (string)
|
|
printf ("This: %s.\n", string);
|
|
|
|
return 0;
|
|
}
|