llvm-project/clang/test/CodeGenCXX/empty-struct-init-list.cpp
Balaji V. Iyer 749e8285a5 [CodeGen] IncompleteArray Support
Added code to support ArrayType that is not ConstantArray.

https://reviews.llvm.org/D49952
rdar://42476155

llvm-svn: 339207
2018-08-08 00:01:21 +00:00

13 lines
326 B
C++

// RUN: %clang_cc1 -std=c++11 -emit-llvm -o - %s | FileCheck %s
// RUN: %clang_cc1 -std=c++14 -emit-llvm -o - %s | FileCheck %s
// RUN: %clang_cc1 -std=c++17 -emit-llvm -o - %s | FileCheck %s
// CHECK: struct.a
typedef struct { } a;
typedef struct {
a b[];
} c;
// CHECK: global %struct.c zeroinitializer, align 1
c d{ };