annotate clang/test/PCH/badpch.c @ 266:00f31e85ec16 default tip

Added tag current for changeset 31d058e83c98
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sat, 14 Oct 2023 10:13:55 +0900
parents 1d019706d866
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // RUN: not %clang_cc1 -fsyntax-only -include-pch %S/Inputs/badpch-empty.h.gch %s 2>&1 | FileCheck -check-prefix=CHECK-EMPTY %s
anatofuz
parents:
diff changeset
2 // RUN: not %clang_cc1 -fsyntax-only -include-pch %S/Inputs/badpch-dir.h.gch %s 2>&1 | FileCheck -check-prefix=CHECK-DIR %s
anatofuz
parents:
diff changeset
3
anatofuz
parents:
diff changeset
4 // The purpose of this test is to verify that various invalid PCH files are
anatofuz
parents:
diff changeset
5 // reported as such.
anatofuz
parents:
diff changeset
6
anatofuz
parents:
diff changeset
7 // PR4568: The messages were much improved since the bug was filed on
anatofuz
parents:
diff changeset
8 // 2009-07-16, though in the case of the PCH being a directory, the error
anatofuz
parents:
diff changeset
9 // message still did not contain the name of the PCH. Also, r149918 which was
anatofuz
parents:
diff changeset
10 // submitted on 2012-02-06 introduced a segfault in the case where the PCH is
anatofuz
parents:
diff changeset
11 // an empty file and clang was built with assertions.
anatofuz
parents:
diff changeset
12 // CHECK-EMPTY: error: input is not a PCH file: '{{.*[/\\]}}badpch-empty.h.gch'
anatofuz
parents:
diff changeset
13 // CHECK-DIR:error: no suitable precompiled header file found in directory '{{.*[/\\]}}badpch-dir.h.gch