hanchenye-llvm-project/clang/test/Modules/exclude-header.c

12 lines
247 B
C

// RUN: rm -rf %t
// RUN: %clang_cc1 -x objective-c -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -I %S/Inputs/exclude-header %s -verify
@import x;
a var_a;
b var_b1; // expected-error {{unknown type name 'b'}}
@import y;
b var_b2;