10 lines · c
1// RUN: %clang_cc1 -emit-pch -o %t %S/line-directive-nofilename.h2// RUN: not %clang_cc1 -include-pch %t -fsyntax-only %s 2>&1 | FileCheck %s3 4// This causes an "error: redefinition" diagnostic. The notes will have the5// locations of the declarations from the PCH file.6double foo, bar;7 8// CHECK: line-directive-nofilename.h:42:5: note: previous definition is here9// CHECK: foobar.h:100:5: note: previous definition is here10