Relax stack check as on some platforms demanglers fail
authorVitaly Buka <vitalybuka@google.com>
Mon, 2 May 2016 23:34:40 +0000 (23:34 +0000)
committerVitaly Buka <vitalybuka@google.com>
Mon, 2 May 2016 23:34:40 +0000 (23:34 +0000)
Summary:
  On Windows (already fixed) and FreeBSD we have stacks traces without
  operator().

Reviewers: eugenis

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D19427

llvm-svn: 268332

compiler-rt/test/asan/TestCases/use-after-scope-capture.cc

index bfa7bcd..926cf13 100644 (file)
@@ -10,7 +10,7 @@ int main() {
     f = [&x]() {
       return x;  // BOOM
       // CHECK: ERROR: AddressSanitizer: stack-use-after-scope
-      // CHECK: #0 0x{{.*}} in {{.*}}::operator(){{.*}}.cc:[[@LINE-2]]
+      // CHECK: #0 0x{{.*}} in {{.*}}use-after-scope-capture.cc:[[@LINE-2]]
     };
   }
   return f();  // BOOM