Sean Callanan 2974e27682 Added a C language test case that verifies that
DWARF types and types from modules can coexist even
if they have the same name and refer to two different
things.

<rdar://problem/18805055>

llvm-svn: 233988
2015-04-03 00:24:32 +00:00

21 lines
301 B
C

#include <stdlib.h>
int printf(const char * restrict format, ...);
typedef struct {
int a;
int b;
} FILE;
int main()
{
FILE *myFile = malloc(sizeof(FILE));
myFile->a = 5;
myFile->b = 9;
printf("%d\n", myFile->a + myFile->b); // Set breakpoint 0 here.
free(myFile);
}