16 lines · c
1// This test checks that under implicit modules, different optimization levels2// get different context hashes.3 4// RUN: rm -rf %t5// RUN: split-file %s %t6 7//--- module.modulemap8module M { header "M.h" }9//--- M.h10//--- tu.c11#include "M.h"12 13// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t/cache -O0 -fsyntax-only %t/tu.c14// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t/cache -O1 -fsyntax-only %t/tu.c15// RUN: find %t/cache -name "M-*.pcm" | count 216