1*7c3d14c8STreehugger Robot // RUN: %clangxx_asan -O1 -fsanitize-address-use-after-scope %s -o %t && \ 2*7c3d14c8STreehugger Robot // RUN: not %run %t 2>&1 | FileCheck %s 3*7c3d14c8STreehugger Robot // XFAIL: * 4*7c3d14c8STreehugger Robot 5*7c3d14c8STreehugger Robot // FIXME: This works only for arraysize <= 8. 6*7c3d14c8STreehugger Robot 7*7c3d14c8STreehugger Robot char *p = 0; 8*7c3d14c8STreehugger Robot main()9*7c3d14c8STreehugger Robotint main() { 10*7c3d14c8STreehugger Robot { 11*7c3d14c8STreehugger Robot char x[1024] = {}; 12*7c3d14c8STreehugger Robot p = x; 13*7c3d14c8STreehugger Robot } 14*7c3d14c8STreehugger Robot return *p; // BOOM 15*7c3d14c8STreehugger Robot } 16