mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-26 16:56:06 +00:00

This adds -no-opaque-pointers to clang tests whose output will change when opaque pointers are enabled by default. This is intended to be part of the migration approach described in https://discourse.llvm.org/t/enabling-opaque-pointers-by-default/61322/9. The patch has been produced by replacing %clang_cc1 with %clang_cc1 -no-opaque-pointers for tests that fail with opaque pointers enabled. Worth noting that this doesn't cover all tests, there's a remaining ~40 tests not using %clang_cc1 that will need a followup change. Differential Revision: https://reviews.llvm.org/D123115
25 lines
772 B
C++
25 lines
772 B
C++
// RUN: %clang_cc1 -no-opaque-pointers -emit-llvm %s -triple x86_64-windows-msvc -gcodeview -debug-info-kind=limited -o - | FileCheck %s
|
|
|
|
struct b {
|
|
b(char *);
|
|
~b();
|
|
};
|
|
struct a {
|
|
~a();
|
|
};
|
|
struct {
|
|
b c;
|
|
const a &d;
|
|
} e[]{nullptr, {}};
|
|
|
|
// CHECK: define internal void @__cxx_global_array_dtor(i8* noundef %0)
|
|
// CHECK-SAME: !dbg ![[SUBPROGRAM:[0-9]+]] {
|
|
// CHECK: arraydestroy.body
|
|
// CHECK: %arraydestroy.elementPast =
|
|
// CHECK-SAME: !dbg ![[LOCATION:[0-9]+]]
|
|
// CHECK: call void @"??1<unnamed-type-e>@@QEAA@XZ"(%struct.anon* {{[^,]*}} %arraydestroy.element)
|
|
// CHECK-SAME: !dbg ![[LOCATION]]
|
|
// CHECK: ![[SUBPROGRAM]] = distinct !DISubprogram(name: "__cxx_global_array_dtor"
|
|
// CHECK-SAME: flags: DIFlagArtificial
|
|
// CHECK: ![[LOCATION]] = !DILocation(line: 0,
|