- Backdate modified header so that the test actually tests content and
not bails out early due to too new header timestamp.
- Verify that modifications to module.modulemap are detected, which is
key to how the modules support works.
#include <string>
void f();
EOF
+ backdate test1.h
CCACHE_SLOPPINESS="$DEFAULT_SLOPPINESS modules" $CCACHE_COMPILE -MD -fmodules -fcxx-modules -c test1.cpp -MD
expect_stat 'cache miss' 2
+
+ echo >>module.modulemap
+ backdate test1.h
+
+ CCACHE_SLOPPINESS="$DEFAULT_SLOPPINESS modules" $CCACHE_COMPILE -MD -fmodules -fcxx-modules -c test1.cpp -MD
+ expect_stat 'cache miss' 3
}