Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGenCXX / funcattrs-global-ctor-dtor.cpp
blobb98cb24d56915d38e04069b5d5f7bf284c6db82c
1 // RUN: %clang_cc1 %s -triple x86_64-apple-darwin -S -stack-protector 2 -emit-llvm -o - | FileCheck %s
3 class A {
4 public:
5 virtual ~A() {}
6 };
8 A g;
10 // CHECK: define internal void @__cxx_global_var_init() [[ATTR0:#[0-9]+]]
11 // CHECK: define internal void @_GLOBAL__sub_I_funcattrs_global_ctor_dtor.cpp() [[ATTR0]]
12 // CHECK: attributes [[ATTR0]] = {{{.*}} sspstrong {{.*}}}