| Chris Lattner | f81557c | 2008-04-04 18:42:16 +0000 | [diff] [blame] | 1 | // RUN: clang < %s -emit-llvm |
| Lauro Ramos Venancio | 5bfe18c | 2008-01-30 21:23:20 +0000 | [diff] [blame] | 2 | struct test { |
| 3 | int a; | ||||
| 4 | }; | ||||
| 5 | |||||
| 6 | extern struct test t; | ||||
| 7 | |||||
| 8 | int *b=&t.a; | ||||
| 9 | |||||
| Chris Lattner | f81557c | 2008-04-04 18:42:16 +0000 | [diff] [blame] | 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 | |||||