brintos

brintos / llvm-project-archived public Read only

0
0
Text · 533 B · 76832d1 Raw
20 lines · cpp
1// RUN: not %clang_cc1 -triple x86_64-unknown-linux-gnu -fclangir -emit-cir %s -o - 2>&1 | FileCheck %s2 3struct Other {4    int x;5};6 7struct Trivial {8    int x;9    double y;10    decltype(&Other::x) ptr;11};12 13// This case has a trivial default constructor, but can't be zero-initialized.14Trivial t;15 16// Since the case above isn't handled yet, we want a test that verifies that17// we're failing for the right reason.18 19// CHECK: error: ClangIR code gen Not Yet Implemented: tryEmitPrivateForVarInit: non-zero-initializable cxx record20