annotate clang/test/PCH/modified-module-dependency.m @ 180:680fa57a2f20

fix compile errors.
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sat, 30 May 2020 17:44:06 +0900
parents 1d019706d866
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // RUN: rm -rf %t-dir
anatofuz
parents:
diff changeset
2 // RUN: mkdir -p %t-dir
anatofuz
parents:
diff changeset
3 // RUN: echo '@import test;' > %t-dir/prefix.h
anatofuz
parents:
diff changeset
4 // RUN: echo 'void foo(void);' > %t-dir/test.h
anatofuz
parents:
diff changeset
5 // RUN: cp %S/modified-module-dependency.module.map %t-dir/module.map
anatofuz
parents:
diff changeset
6
anatofuz
parents:
diff changeset
7 // Precompile prefix.pch.
anatofuz
parents:
diff changeset
8 // RUN: %clang_cc1 -x objective-c -I %t-dir -fmodules -fimplicit-module-maps -fmodules-cache-path=%t-dir/cache -fdisable-module-hash -emit-pch %t-dir/prefix.h -o %t-dir/prefix.pch
anatofuz
parents:
diff changeset
9
anatofuz
parents:
diff changeset
10 // Modify the dependency.
anatofuz
parents:
diff changeset
11 // RUN: echo ' ' >> %t-dir/test.h
anatofuz
parents:
diff changeset
12
anatofuz
parents:
diff changeset
13 // Run and check the diagnostics.
anatofuz
parents:
diff changeset
14 // RUN: not %clang_cc1 -x objective-c -I %t-dir -include-pch %t-dir/prefix.pch -fmodules -fimplicit-module-maps -fmodules-cache-path=%t-dir/cache -fdisable-module-hash -fsyntax-only %s 2> %t-dir/log
anatofuz
parents:
diff changeset
15 // RUN: FileCheck %s < %t-dir/log
anatofuz
parents:
diff changeset
16
anatofuz
parents:
diff changeset
17 // CHECK: file '[[TEST_H:.*[/\\]test\.h]]' has been modified since the precompiled header '[[PREFIX_PCH:.*/prefix\.pch]]' was built
anatofuz
parents:
diff changeset
18 // CHECK: '[[TEST_H]]' required by '[[TEST_PCM:.*[/\\]test\.pcm]]'
anatofuz
parents:
diff changeset
19 // CHECK: '[[TEST_PCM]]' required by '[[PREFIX_PCH]]'
anatofuz
parents:
diff changeset
20 // CHECK: please rebuild precompiled header '[[PREFIX_PCH]]'