Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGenCXX / no-const-init-cxx2a.cpp
bloba945c066e3bb29b28a75aa4197ff9fe76b584d1f
1 // RUN: %clang_cc1 -triple x86_64-linux-gnu -emit-llvm -o - %s -std=c++2a | FileCheck %s
3 // CHECK-DAG: @p = {{.*}} null
4 // CHECK-DAG: @_ZGR1p_ = {{.*}} null
5 int *const &p = new int;
7 struct d {
8 constexpr d(int &&f) : e(f) {}
9 int &e;
12 // CHECK-DAG: @g = {{.*}} null
13 // CHECK-DAG: @_ZGR1g_ = {{.*}} zeroinitializer
14 d &&g{{0}};
16 // CHECK: define {{.*}} @__cxx_global_var_init
17 // CHECK: define {{.*}} @__cxx_global_var_init
18 // CHECK-NOT: define {{.*}} @__cxx_global_var_init