blob: da56956516625729b4e6471c5b57de2786063bad [file] [log] [blame]
/* 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