blob: fdc8c149e5222fe5e68ce231989ac51fdaae28ce [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 < %s -emit-llvm
Lauro Ramos Venancio5bfe18c2008-01-30 21:23:20 +00002struct test {
3 int a;
4};
5
6extern struct test t;
7
8int *b=&t.a;
9
Chris Lattnerf81557c2008-04-04 18:42:16 +000010
11// PR2049
12typedef struct mark_header_tag {
13 unsigned char mark[7];
14} mark_header_t;
15int 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', '!'}};
Mike Stump1eb44332009-09-09 15:08:12 +000017 foo(rar_hdr);
Chris Lattnerf81557c2008-04-04 18:42:16 +000018
19 return 0;
20}
21