annotate clang/test/CodeGen/init-with-member-expr.c @ 150:1d019706d866

LLVM10
author anatofuz
date Thu, 13 Feb 2020 15:10:13 +0900
parents
children c4bab56944e8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // RUN: %clang_cc1 < %s -emit-llvm
anatofuz
parents:
diff changeset
2 struct test {
anatofuz
parents:
diff changeset
3 int a;
anatofuz
parents:
diff changeset
4 };
anatofuz
parents:
diff changeset
5
anatofuz
parents:
diff changeset
6 extern struct test t;
anatofuz
parents:
diff changeset
7
anatofuz
parents:
diff changeset
8 int *b=&t.a;
anatofuz
parents:
diff changeset
9
anatofuz
parents:
diff changeset
10
anatofuz
parents:
diff changeset
11 // PR2049
anatofuz
parents:
diff changeset
12 typedef struct mark_header_tag {
anatofuz
parents:
diff changeset
13 unsigned char mark[7];
anatofuz
parents:
diff changeset
14 } mark_header_t;
anatofuz
parents:
diff changeset
15 int is_rar_archive(int fd) {
anatofuz
parents:
diff changeset
16 const mark_header_t rar_hdr[2] = {{0x52, 0x61, 0x72, 0x21, 0x1a, 0x07, 0x00}, {'U', 'n', 'i', 'q', 'u', 'E', '!'}};
anatofuz
parents:
diff changeset
17 foo(rar_hdr);
anatofuz
parents:
diff changeset
18
anatofuz
parents:
diff changeset
19 return 0;
anatofuz
parents:
diff changeset
20 }
anatofuz
parents:
diff changeset
21