| 1 |
/* RUN: %clang_cc1 -std=c89 -emit-llvm -o - %s | FileCheck %s |
| 2 |
RUN: %clang_cc1 -std=c99 -emit-llvm -o - %s | FileCheck %s |
| 3 |
RUN: %clang_cc1 -std=c11 -emit-llvm -o - %s | FileCheck %s |
| 4 |
RUN: %clang_cc1 -std=c17 -emit-llvm -o - %s | FileCheck %s |
| 5 |
RUN: %clang_cc1 -std=c2x -emit-llvm -o - %s | FileCheck %s |
| 6 |
*/ |
| 7 |
|
| 8 |
/* WG14 DR011: yes |
| 9 |
* Merging of declarations for linked identifier |
| 10 |
* |
| 11 |
* Note, more of this DR is tested in dr0xx.c |
| 12 |
*/ |
| 13 |
|
| 14 |
int i[10]; |
| 15 |
int j[]; |
| 16 |
|
| 17 |
// CHECK: @i = {{.*}}global [10 x i32] zeroinitializer |
| 18 |
// CHECK-NEXT: @j = {{.*}}global [1 x i32] zeroinitializer |