xref: /aosp_15_r20/external/clang/test/CodeGen/2005-03-05-OffsetOfHack.c (revision 67e74705e28f6214e480b399dd47ea732279e315)
1 // RUN: %clang_cc1 %s -emit-llvm -o -
2 
3 struct s {
4   unsigned long int field[0];
5 };
6 
7 #define OFFS \
8         (((char *) &((struct s *) 0)->field[0]) - (char *) 0)
9 
10 int foo[OFFS];
11 
12 
13