diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2016-07-23 20:44:14 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2016-07-23 20:44:14 +0000 |
| commit | 2b6b257f4e5503a7a2675bdb8735693db769f75c (patch) | |
| tree | e85e046ae7003fe3bcc8b5454cd0fa3f7407b470 /test/CodeGenCXX/debug-info-varargs.cpp | |
| parent | b4348ed0b7e90c0831b925fbee00b5f179a99796 (diff) | |
Notes
Diffstat (limited to 'test/CodeGenCXX/debug-info-varargs.cpp')
| -rw-r--r-- | test/CodeGenCXX/debug-info-varargs.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/test/CodeGenCXX/debug-info-varargs.cpp b/test/CodeGenCXX/debug-info-varargs.cpp index 52bffe6c9285..7afbcd255842 100644 --- a/test/CodeGenCXX/debug-info-varargs.cpp +++ b/test/CodeGenCXX/debug-info-varargs.cpp @@ -2,13 +2,7 @@ struct A { - // CHECK: !DISubprogram(name: "a", linkageName: "_ZN1A1aEiz" - // CHECK-SAME: line: [[@LINE+2]] - // CHECK-SAME: type: ![[ATY:[0-9]+]] void a(int c, ...) {} - // CHECK: ![[ATY]] = !DISubroutineType(types: ![[AARGS:[0-9]+]]) - // We no longer use an explicit unspecified parameter. Instead we use a trailing null to mean the function is variadic. - // CHECK: ![[AARGS]] = !{null, !{{[0-9]+}}, !{{[0-9]+}}, null} }; // CHECK: !DISubprogram(name: "b", linkageName: "_Z1biz" @@ -18,6 +12,14 @@ void b(int c, ...) { // CHECK: ![[BTY]] = !DISubroutineType(types: ![[BARGS:[0-9]+]]) // CHECK: ![[BARGS]] = !{null, !{{[0-9]+}}, null} + // The subprogram "a" comes after "b" because the function comes later. + // CHECK: !DISubprogram(name: "a", linkageName: "_ZN1A1aEiz" + // CHECK-SAME: line: 5, + // CHECK-SAME: type: ![[ATY:[0-9]+]] + // CHECK: ![[ATY]] = !DISubroutineType(types: ![[AARGS:[0-9]+]]) + // We no longer use an explicit unspecified parameter. Instead we use a trailing null to mean the function is variadic. + // CHECK: ![[AARGS]] = !{null, !{{[0-9]+}}, !{{[0-9]+}}, null} + A a; // CHECK: !DILocalVariable(name: "fptr" |
