• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 \
5// RUN:   -fsyntax-only
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 \
11// RUN:   -fsyntax-only
12
13// This testcase reproduces a use-after-free in when ModuleManager removes an
14// entry from the ModuleCache without notifying its parent ASTReader.
15@import Cocoa;
16