brintos

brintos / llvm-project-archived public Read only

0
0
Text · 359 B · 4ffcd99 Raw
18 lines · c
1// RUN: %clang_cc1 -target-linker-version 100 -emit-pch %s -o %t.h.pch2// RUN: %clang_cc1 -target-linker-version 200 %s -include-pch %t.h.pch -fsyntax-only -verify3 4#ifndef HEADER5#define HEADER6 7extern int foo;8 9#else10 11void f(void) {12  int a = foo;13  // Make sure we parsed this by getting an error.14  int b = bar; // expected-error {{undeclared}}15}16 17#endif18