remove a bogus test
[oota-llvm.git] / test / CFrontend / bit-accurate-int.c
1 // RUN: ignore %llvmgcc -S %s -o - /dev/null |& not grep warning
2 // XFAIL: *
3
4 #define ATTR_BITS(N) __attribute__((bitwidth(N))) 
5
6 typedef int ATTR_BITS( 4) My04BitInt;
7 typedef int ATTR_BITS(16) My16BitInt;
8 typedef int ATTR_BITS(17) My17BitInt;
9 typedef int ATTR_BITS(37) My37BitInt;
10 typedef int ATTR_BITS(65) My65BitInt;
11
12 struct MyStruct {
13   My04BitInt i4Field;
14   short ATTR_BITS(12) i12Field;
15   long ATTR_BITS(17) i17Field;
16   My37BitInt i37Field;
17 };
18
19 My37BitInt doit( short ATTR_BITS(23) num) {
20   My17BitInt i;
21   struct MyStruct strct;
22   int bitsize1 = sizeof(My17BitInt);
23   int __attribute__((bitwidth(9))) j;
24   int bitsize2 = sizeof(j);
25   int result = bitsize1 + bitsize2;
26   strct.i17Field = result;
27   result += sizeof(struct MyStruct);
28   return result;
29 }
30
31 int
32 main ( int argc, char** argv)
33 {
34   return (int ATTR_BITS(32)) doit((short ATTR_BITS(23))argc);
35 }