[ubsan] Follow-up for r216657: fixed the line numbers in the test.

llvm-svn: 216661
This commit is contained in:
Alexander Potapenko 2014-08-28 10:25:17 +00:00
parent efd4363172
commit 2164fa3b9b
1 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@
int f() { int f() {
// Slow stack unwinding is disabled on Darwin for now, see // Slow stack unwinding is disabled on Darwin for now, see
// https://code.google.com/p/address-sanitizer/issues/detail?id=137 // https://code.google.com/p/address-sanitizer/issues/detail?id=137
// CHECK-Linux-STACKTRACE: #0 {{.*}} in f(){{.*}}missing_return.cpp:[[@LINE-1]] // CHECK-Linux-STACKTRACE: #0 {{.*}} in f(){{.*}}missing_return.cpp:[[@LINE-3]]
// Check for already checked line to avoid lit error reports. // Check for already checked line to avoid lit error reports.
// CHECK-Darwin-STACKTRACE: missing_return.cpp // CHECK-Darwin-STACKTRACE: missing_return.cpp
} }
@ -14,5 +14,5 @@ int f() {
int main(int, char **argv) { int main(int, char **argv) {
return f(); return f();
// Disabled on Darwin, see above. // Disabled on Darwin, see above.
// CHECK-Linux-STACKTRACE: #1 {{.*}} in main{{.*}}missing_return.cpp:[[@LINE-1]] // CHECK-Linux-STACKTRACE: #1 {{.*}} in main{{.*}}missing_return.cpp:[[@LINE-2]]
} }