1 // RUN: %llvmgcc -S -x objective-c -m32 %s -o %t
2 // This used to crash, 6831493.
17 unsigned int _iv3 : 3;
52 int g5_0 = sizeof(I5);
57 @synthesize P1 = _MadeUpName;
58 @synthesize P2 = _AnotherMadeUpName;
60 @synthesize P1 = _iv6;
61 @synthesize P2 = _iv7;
66 int g5_1 = sizeof(I5);
75 @interface T0_I1 : T0_I0 {
80 @interface T0_I2 : T0_I1 {
86 int g6 = sizeof(T0_I0);
87 int g7 = sizeof(T0_I1);
88 int g8 = sizeof(T0_I2);
91 @implementation T0_I0 @end
92 @implementation T0_I1 @end
93 @implementation T0_I2 @end
95 void f0(I2*i2,I3*i3,I4*i4,I5*i5,T0_I0*t0_i0,T0_I1*t0_i1,T0_I2*t0_i2) {
98 // Thomas Wang's ui32 hash.
99 unsigned hash_ui32_to_ui32(unsigned a) {
100 a = (a ^ 61) ^ (a >> 16);
108 unsigned char hash_ui32_to_ui8(unsigned ui) {
109 ui = hash_ui32_to_ui32(ui);
113 return (unsigned char) ui;
117 unsigned i, N = 1024;
118 unsigned char *p = malloc(N);
119 for (i=0; i != N; ++i)
120 p[i] = hash_ui32_to_ui8(i);