annotate clang/test/PCH/line-directive-nofilename.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: %clang_cc1 -emit-pch -o %t %S/line-directive-nofilename.h
anatofuz
parents:
diff changeset
2 // RUN: not %clang_cc1 -include-pch %t -fsyntax-only %s 2>&1 | FileCheck %s
anatofuz
parents:
diff changeset
3
anatofuz
parents:
diff changeset
4 // This causes an "error: redefinition" diagnostic. The notes will have the
anatofuz
parents:
diff changeset
5 // locations of the declarations from the PCH file.
anatofuz
parents:
diff changeset
6 double foo, bar;
anatofuz
parents:
diff changeset
7
anatofuz
parents:
diff changeset
8 // CHECK: line-directive-nofilename.h:42:5: note: previous definition is here
anatofuz
parents:
diff changeset
9 // CHECK: foobar.h:100:5: note: previous definition is here