16 lines · plain
1// RUN: rm -rf %t.cache2// RUN: echo "@import CoreText;" > %t.m3// RUN: %clang_cc1 -fdisable-module-hash -fmodules-cache-path=%t.cache \4// RUN: -fmodules -fimplicit-module-maps -I%S/Inputs/outofdate-rebuild %s \5// RUN: -fsyntax-only6// 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-only9// RUN: %clang_cc1 -fdisable-module-hash -fmodules-cache-path=%t.cache \10// RUN: -fmodules -fimplicit-module-maps -I%S/Inputs/outofdate-rebuild %s \11// RUN: -fsyntax-only12 13// This testcase reproduces a use-after-free in when ModuleManager removes an14// entry from the ModuleCache without notifying its parent ASTReader.15@import Cocoa;16