aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGenCXX/empty-struct-init-list.cpp
blob: 33f52ba7032d62c08b29288b78f3c46016ba5aba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// 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: {{(dso_local )?}}global %struct.c{{.*}}zeroinitializer
c d{ };