Files
clang-p2996/lldb/test/lang/c/modules/main.c
Vince Harron f9900379b4 TestCModules - fixed for gcc
Changed restrict keyword to something understood by gcc

llvm-svn: 236410
2015-05-04 06:26:13 +00:00

21 lines
303 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);
}