annotate clang/test/PCH/modified-header-error.c @ 252:1f2b6ac9f198 llvm-original

LLVM16-1
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Fri, 18 Aug 2023 09:04:13 +0900
parents 1d019706d866
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // RUN: mkdir -p %t.dir
anatofuz
parents:
diff changeset
2 // RUN: echo '#include "header2.h"' > %t.dir/header1.h
anatofuz
parents:
diff changeset
3 // RUN: echo > %t.dir/header2.h
anatofuz
parents:
diff changeset
4 // RUN: cp %s %t.dir/t.c
anatofuz
parents:
diff changeset
5 // RUN: %clang_cc1 -x c-header %t.dir/header1.h -emit-pch -o %t.pch
anatofuz
parents:
diff changeset
6 // RUN: echo >> %t.dir/header2.h
anatofuz
parents:
diff changeset
7 // RUN: not %clang_cc1 %t.dir/t.c -include-pch %t.pch -fsyntax-only 2>&1 | FileCheck %s
anatofuz
parents:
diff changeset
8
anatofuz
parents:
diff changeset
9 #include "header2.h"
anatofuz
parents:
diff changeset
10
anatofuz
parents:
diff changeset
11 // CHECK: fatal error: file {{.*}} has been modified since the precompiled header {{.*}} was built