[mlir] Fix typo in test vector transform pass descriptions (#118194)
[llvm-project.git] / lldb / test / Shell / SymbolFile / NativePDB / global-ctor-dtor.cpp
blobe34e6eb7bf54a189c1f620e3a101f9751c9db04b
1 // clang-format off
2 // REQUIRES: lld, x86
4 // Global ctor and dtor should be globals decls.
5 // RUN: %clang_cl --target=x86_64-windows-msvc -Od -Z7 -GS- -fno-addrsig -c /Fo%t.obj -- %s
6 // RUN: lld-link -debug:full -nodefaultlib -entry:main %t.obj -out:%t.exe -pdb:%t.pdb -force
7 // RUN: lldb-test symbols --dump-ast %t.exe | FileCheck %s
9 struct A {
10 ~A() {};
12 struct B {
13 static A glob;
16 A B::glob = A();
17 int main() {
18 return 0;
21 // CHECK: struct A {
22 // CHECK-NEXT: ~A();
23 // CHECK-NEXT: };
24 // CHECK-NEXT: A B::glob;
25 // CHECK-NEXT: static void B::`dynamic initializer for 'glob'();
26 // CHECK-NEXT: static void B::`dynamic atexit destructor for 'glob'();
27 // CHECK-NEXT: int main();
28 // CHECK-NEXT: static void _GLOBAL__sub_I_global_ctor_dtor.cpp();
29 // CHECK-NEXT: struct B {
30 // CHECK-NEXT: static A glob;
31 // CHECK-NEXT: };