[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / PCH / different-linker-version.c
blob4ffcd99a3de846c42fc6a96c2b6654e13f12d814
1 // RUN: %clang_cc1 -target-linker-version 100 -emit-pch %s -o %t.h.pch
2 // RUN: %clang_cc1 -target-linker-version 200 %s -include-pch %t.h.pch -fsyntax-only -verify
4 #ifndef HEADER
5 #define HEADER
7 extern int foo;
9 #else
11 void f(void) {
12 int a = foo;
13 // Make sure we parsed this by getting an error.
14 int b = bar; // expected-error {{undeclared}}
17 #endif