Mercurial > hg > CbC > CbC_llvm
diff clang/test/Modules/outofdate-rebuild.m @ 150:1d019706d866
LLVM10
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 15:10:13 +0900 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/clang/test/Modules/outofdate-rebuild.m Thu Feb 13 15:10:13 2020 +0900 @@ -0,0 +1,15 @@ +// RUN: rm -rf %t.cache +// RUN: echo "@import CoreText;" > %t.m +// RUN: %clang_cc1 -fdisable-module-hash -fmodules-cache-path=%t.cache \ +// RUN: -fmodules -fimplicit-module-maps -I%S/Inputs/outofdate-rebuild %s \ +// RUN: -fsyntax-only +// RUN: %clang_cc1 -DMISMATCH -Werror -fdisable-module-hash \ +// RUN: -fmodules-cache-path=%t.cache -fmodules -fimplicit-module-maps \ +// RUN: -I%S/Inputs/outofdate-rebuild %t.m -fsyntax-only +// RUN: %clang_cc1 -fdisable-module-hash -fmodules-cache-path=%t.cache \ +// RUN: -fmodules -fimplicit-module-maps -I%S/Inputs/outofdate-rebuild %s \ +// RUN: -fsyntax-only + +// This testcase reproduces a use-after-free in when ModuleManager removes an +// entry from the ModuleCache without notifying its parent ASTReader. +@import Cocoa;