// RUN: %clangxx_asan -O1 -mllvm -asan-use-after-scope=1 %s -o %t && \
// RUN:     not %run %t 2>&1 | FileCheck %s
// XFAIL: *

// FIXME: This works only for arraysize <= 8.

char *p = 0;

int main() {
  {
    char x[1024] = {};
    p = x;
  }
  return *p;  // BOOM
}

Add another failing use-after-scope test
Add another failing use-after-scope test

Summary:
  Use after scope is not detected if array larger then 8 bytes.

Subscribers: kubabrecka

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

git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@268330 91177308-0d34-0410-b5e6-96231b3b80d8
