aboutsummaryrefslogtreecommitdiff
path: root/clang/test/C/drs/dr011.c
blob: da56956516625729b4e6471c5b57de2786063bad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* RUN: %clang_cc1 -std=c89 -emit-llvm -o - %s | FileCheck %s
   RUN: %clang_cc1 -std=c99 -emit-llvm -o - %s | FileCheck %s
   RUN: %clang_cc1 -std=c11 -emit-llvm -o - %s | FileCheck %s
   RUN: %clang_cc1 -std=c17 -emit-llvm -o - %s | FileCheck %s
   RUN: %clang_cc1 -std=c2x -emit-llvm -o - %s | FileCheck %s
 */

/* WG14 DR011: yes
 * Merging of declarations for linked identifier
 *
 * Note, more of this DR is tested in dr0xx.c
 */

int i[10];
int j[];

// CHECK: @i = {{.*}}global [10 x i32] zeroinitializer
// CHECK-NEXT: @j = {{.*}}global [1 x i32] zeroinitializer