Skip to content

Commit 16856a5

Browse files
committed
fixup! fix failing tests
1 parent 683b9ef commit 16856a5

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

clang/test/CodeGenCXX/Inputs/debug-info-class-limited.cpp renamed to clang/test/DebugInfo/CXX/Inputs/debug-info-class-limited.cpp

File renamed without changes.

clang/test/DebugInfo/CXX/anon-union-vars.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ void instantiate(int x) {
4646

4747
// CHECK: !DIGlobalVariable(name: "c",{{.*}} file: [[FILE:.*]], line: 6,{{.*}} isLocal: true, isDefinition: true
4848
// CHECK: !DIGlobalVariable(name: "d",{{.*}} file: [[FILE]], line: 6,{{.*}} isLocal: true, isDefinition: true
49-
// CHECK: [[FILE]] = !DIFile(filename: "{{.*}}debug-info-anon-union-vars.cpp",
49+
// CHECK: [[FILE]] = !DIFile(filename: "{{.*}}anon-union-vars.cpp",
5050
// CHECK: !DIGlobalVariable(name: "a",{{.*}} file: [[FILE]], line: 6,{{.*}} isLocal: true, isDefinition: true
5151
// CHECK: !DIGlobalVariable(name: "b",{{.*}} file: [[FILE]], line: 6,{{.*}} isLocal: true, isDefinition: true
5252
// CHECK: !DIGlobalVariable(name: "result", {{.*}} isLocal: false, isDefinition: true

clang/test/DebugInfo/CXX/function-context.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// RUN: %clang_cc1 -emit-llvm -debug-info-kind=limited -triple x86_64-pc-linux-gnu %s -fdebug-compilation-dir=%S \
2-
// RUN: -dwarf-version=5 -main-file-name debug-info-function-context.cpp -o - | FileCheck %s
2+
// RUN: -dwarf-version=5 -main-file-name function-context.cpp -o - | FileCheck %s
33

44
struct C {
55
void member_function();

clang/test/DebugInfo/CXX/lambda-expressions.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ int d(int x) { D y[10]; return [x,y] { return y[x].x; }(); }
2121
// CHECK-SAME: line: [[VAR_LINE:[0-9]+]]
2222
// CHECK-SAME: type: ![[VAR_T:[0-9]+]]
2323

24-
// CHECK: [[FILE:.*]] = !DIFile(filename: "{{.*}}debug-lambda-expressions.cpp",
24+
// CHECK: [[FILE:.*]] = !DIFile(filename: "{{.*}}lambda-expressions.cpp",
2525

2626
// CVAR:
2727
// CHECK: !DIGlobalVariable(name: "cvar"

clang/test/DebugInfo/CXX/simple-template-names.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,18 +70,18 @@ void f() {
7070
// anything other than another unnamed class/struct.
7171
auto Lambda = [] {};
7272
f1<decltype(Lambda)>();
73-
// CHECK: !DISubprogram(name: "f1<(lambda at {{.*}}debug-info-simple-template-names.cpp:[[# @LINE - 2]]:17)>",
73+
// CHECK: !DISubprogram(name: "f1<(lambda at {{.*}}simple-template-names.cpp:[[# @LINE - 2]]:17)>",
7474
f1<t1<t1<decltype(Lambda)>>>();
7575
// CHECK: !DISubprogram(name: "f1<t1<t1<(lambda at {{.*}}> > >",
7676
struct {
7777
} unnamed_struct;
7878
f1<decltype(unnamed_struct)>();
79-
// CHECK: !DISubprogram(name: "f1<(unnamed struct at {{.*}}debug-info-simple-template-names.cpp:[[# @LINE - 3]]:3)>",
79+
// CHECK: !DISubprogram(name: "f1<(unnamed struct at {{.*}}simple-template-names.cpp:[[# @LINE - 3]]:3)>",
8080
f1<void (decltype(unnamed_struct))>();
81-
// CHECK: !DISubprogram(name: "f1<void ((unnamed struct at {{.*}}debug-info-simple-template-names.cpp:[[# @LINE - 5]]:3))>",
81+
// CHECK: !DISubprogram(name: "f1<void ((unnamed struct at {{.*}}simple-template-names.cpp:[[# @LINE - 5]]:3))>",
8282
enum {} unnamed_enum;
8383
f1<decltype(unnamed_enum)>();
84-
// CHECK: !DISubprogram(name: "f1<(unnamed enum at {{.*}}debug-info-simple-template-names.cpp:[[# @LINE - 2]]:3)>",
84+
// CHECK: !DISubprogram(name: "f1<(unnamed enum at {{.*}}simple-template-names.cpp:[[# @LINE - 2]]:3)>",
8585

8686
// Declarations can't readily be reversed as the value in the DWARF only
8787
// contains the address of the value - we'd have to do symbol lookup to find

clang/test/DebugInfo/CXX/verbose-trap.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
// CHECK: attributes #[[ATTR1]] = { cold {{.*}}}
1919

20-
// CHECK: ![[FILESCOPE:.*]] = !DIFile(filename: "{{.*}}debug-info-verbose-trap.cpp"
20+
// CHECK: ![[FILESCOPE:.*]] = !DIFile(filename: "{{.*}}verbose-trap.cpp"
2121

2222
char const constCat[] = "category2";
2323
char const constMsg[] = "hello";

0 commit comments

Comments
 (0)