Debian Codegraph @

clang/test/Modules/implicit-opt-level.c

raw
1 // This test checks that under implicit modules, different optimization levels
2 // get different context hashes.
3
4 // RUN: rm -rf %t
5 // RUN: split-file %s %t
6
7 //--- module.modulemap
8 module M { header "M.h" }
9 //--- M.h
10 //--- tu.c
11 #include "M.h"
12
13 // RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t/cache -O0 -fsyntax-only %t/tu.c
14 // RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t/cache -O1 -fsyntax-only %t/tu.c
15 // RUN: find %t/cache -name "M-*.pcm" | count 2