aboutsummaryrefslogtreecommitdiff
path: root/SingleSource/UnitTests/2002-08-19-CodegenBug.c
blob: 2cf6ba55c631a074fe7f7f96cdd8b71f617731a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* This testcase tests a problem that occurred due to the way call nodes are 
 * generated by llvmgcc.
 */

#include <stdio.h>
#include <stdlib.h>

int main() {
    unsigned char *validate_array;

    validate_array = (unsigned char *)malloc(64);
    if (validate_array == 0) {
	printf("FAILURE!\n");
	exit(1);
    }

    printf("SUCCESS\n");
    return 0;
}