1 // RUN: rm -rf %t.cache
2 // RUN: echo "@import CoreText;" > %t.m
3 // RUN: %clang_cc1 -fdisable-module-hash -fmodules-cache-path=%t.cache \
4 // RUN: -fmodules -fimplicit-module-maps -I%S/Inputs/outofdate-rebuild %s \
6 // RUN: %clang_cc1 -DMISMATCH -Werror -fdisable-module-hash \
7 // RUN: -fmodules-cache-path=%t.cache -fmodules -fimplicit-module-maps \
8 // RUN: -I%S/Inputs/outofdate-rebuild %t.m -fsyntax-only
9 // RUN: %clang_cc1 -fdisable-module-hash -fmodules-cache-path=%t.cache \
10 // RUN: -fmodules -fimplicit-module-maps -I%S/Inputs/outofdate-rebuild %s \
13 // This testcase reproduces a use-after-free in when ModuleManager removes an
14 // entry from the ModuleCache without notifying its parent ASTReader.