[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / PCH / line-directive-nofilename.c
blob0d2bcb78c2a451ad89d17453f7fe3c32246036c2
1 // RUN: %clang_cc1 -emit-pch -o %t %S/line-directive-nofilename.h
2 // RUN: not %clang_cc1 -include-pch %t -fsyntax-only %s 2>&1 | FileCheck %s
4 // This causes an "error: redefinition" diagnostic. The notes will have the
5 // locations of the declarations from the PCH file.
6 double foo, bar;
8 // CHECK: line-directive-nofilename.h:42:5: note: previous definition is here
9 // CHECK: foobar.h:100:5: note: previous definition is here