update test
[oota-llvm.git] / test / CFrontend / 2002-11-07-Redefinition.c
1 // RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
2 // XFAIL: *
3
4 /* Provide Declarations */
5
6 #ifndef NULL
7 #define NULL 0
8 #endif
9
10 #ifndef __cplusplus
11 typedef unsigned char bool;
12 #endif
13
14
15 /* Support for floating point constants */
16 typedef unsigned long long ConstantDoubleTy;
17 typedef unsigned int        ConstantFloatTy;
18
19
20 /* Global Declarations */
21
22 /* External Global Variable Declarations */
23
24 /* Function Declarations */
25 void __main();
26 int printf(signed char *, ...);
27 void testfunc(short l5_s, float l11_X, signed char l3_C, signed long long l9_LL, int l7_I, double l12_D);
28 void main();
29
30 /* Malloc to make sun happy */
31 extern void * malloc(size_t);
32
33
34
35 /* Global Variable Declerations */
36 extern signed char l27_d_LC0[26];
37
38
39 /* Global Variable Definitions and Initialization */
40 static signed char l27_d_LC0[26] = "%d, %f, %d, %lld, %d, %f\n";
41
42
43 /* Function Bodies */
44 void testfunc(short l5_s, float l11_X, signed char l3_C, signed long long l9_LL, int l7_I, double l12_D) {
45   int l7_reg226;
46
47
48   l7_reg226 = printf((&(l27_d_LC0[0ll])), ((unsigned )l5_s), ((double )l11_X), ((unsigned )l3_C), l9_LL, l7_I, l12_D);
49   return;
50 }
51
52 void main() {
53
54   const ConstantFloatTy FloatConstant0 = 0x3f9f5c29;    /* 1.245 */
55   const ConstantDoubleTy FloatConstant1 = 0x432ff973cafa8000;    /* 4.5e+15 */
56
57   __main();
58   testfunc(12, (*(float*)&FloatConstant0), 120, 123456677890ll, -10, (*(double*)&FloatConstant1));
59   return;
60 }
61