blob: a8b84e9d20d9b663e8c8ddd527e538903e1673a9 [file] [log] [blame] [edit]
// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -fclangir -emit-llvm %s -o %t.ll
// RUN: FileCheck --input-file=%t.ll %s -check-prefix=LLVM
struct S {
int x;
};
// LLVM: define dso_local void @zeroInit
// LLVM: [[TMP0:%.*]] = alloca %struct.S, i64 1
// LLVM: store %struct.S zeroinitializer, ptr [[TMP0]]
void zeroInit() {
struct S s = {0};
}