Fix final linking errors
[oota-llvm.git] / test / C++Frontend / 2003-05-22-LocalTypeTest.c
1 #include <stdio.h>
2
3 struct sometimes {
4   short offset; short bit;
5   short live_length; short calls_crossed;
6 } Y;
7
8 int main() {
9   int X;
10   {
11     struct sometimes { int X, Y; } S;
12     S.X = 1;
13     X = S.X;
14   }
15   { 
16     struct sometimes { char X; } S;
17     S.X = -1;
18     X += S.X;
19   }
20   X += Y.offset;
21
22   printf("Result is %d\n", X);
23   return X;
24 }