1 // BUILD: clang -fsanitize=address %s -o %t 2 // CHECK: AddressSanitizer:Use-after-scope 3 4 volatile int *p = 0; 5 main()6 int main() { 7 { 8 int x = 0; 9 p = &x; 10 } 11 *p = 5; 12 return 0; 13 }