mirror of
https://github.com/llvm/llvm-project.git
synced 2025-05-10 16:46:07 +00:00

This addresses several (not all) debug info tests that use explicit metadata numbers. Wherever the same number appeared more than once in a test I used a named match to ensure the same number appeared in all those cases (this may still be overly constraining test cases as they may not have actually cared about that relationship). For one-off numbers I just replaced them with an unnamed regex. This may underconstrain poorly written test cases that were interested in checking that certain metadata nodes were related but didn't actually match on all the related nodes numbers. llvm-svn: 174247
16 lines
441 B
C++
16 lines
441 B
C++
// RUN: %clang_cc1 -triple x86_64-apple-darwin10.0.0 -emit-llvm -o - %s -fexceptions -std=c++11 -g | FileCheck %s
|
|
|
|
struct D {
|
|
D();
|
|
D(const D&);
|
|
int x;
|
|
int d(int x);
|
|
};
|
|
int D::d(int x) {
|
|
[=] {
|
|
return this->x;
|
|
}();
|
|
}
|
|
|
|
// CHECK: metadata !{i32 {{.*}}, metadata !"this", metadata !{{.*}}, i32 11, i64 64, i64 64, i64 0, i32 1, metadata !{{.*}}} ; [ DW_TAG_member ] [this] [line 11, size 64, align 64, offset 0] [private] [from ]
|