Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / CodeGen / init-with-member-expr.c
blobb3e7c1bde02a4084a0a12afc2d9f2dbe0c67c42f
1 // RUN: %clang_cc1 < %s -emit-llvm
2 struct test {
3 int a;
4 };
6 extern struct test t;
8 int *b=&t.a;
11 // PR2049
12 typedef struct mark_header_tag {
13 unsigned char mark[7];
14 } mark_header_t;
15 extern int foo();
16 int is_rar_archive(int fd) {
17 const mark_header_t rar_hdr[2] = {{0x52, 0x61, 0x72, 0x21, 0x1a, 0x07, 0x00}, {'U', 'n', 'i', 'q', 'u', 'E', '!'}};
18 foo(rar_hdr);
20 return 0;