Mercurial > hg > CbC > CbC_llvm
annotate clang/test/CodeGen/init-with-member-expr.c @ 207:2e18cbf3894f
LLVM12
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 08 Jun 2021 06:07:14 +0900 |
parents | 1d019706d866 |
children | c4bab56944e8 |
rev | line source |
---|---|
150 | 1 // RUN: %clang_cc1 < %s -emit-llvm |
2 struct test { | |
3 int a; | |
4 }; | |
5 | |
6 extern struct test t; | |
7 | |
8 int *b=&t.a; | |
9 | |
10 | |
11 // PR2049 | |
12 typedef struct mark_header_tag { | |
13 unsigned char mark[7]; | |
14 } mark_header_t; | |
15 int is_rar_archive(int fd) { | |
16 const mark_header_t rar_hdr[2] = {{0x52, 0x61, 0x72, 0x21, 0x1a, 0x07, 0x00}, {'U', 'n', 'i', 'q', 'u', 'E', '!'}}; | |
17 foo(rar_hdr); | |
18 | |
19 return 0; | |
20 } | |
21 |