[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / clang / test / Sema / PR28181.c
blob8d0a4ad33562a5569b3bfa3fc40544456d8aff24
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
3 struct spinlock_t {
4 int lock;
5 } audit_skb_queue;
7 void fn1(void) {
8 audit_skb_queue = (lock); // expected-error {{use of undeclared identifier 'lock'; did you mean 'long'?}}
9 } // expected-error@-1 {{assigning to 'struct spinlock_t' from incompatible type '<overloaded function type>'}}
11 void fn2(void) {
12 audit_skb_queue + (lock); // expected-error {{use of undeclared identifier 'lock'; did you mean 'long'?}}
13 } // expected-error@-1 {{reference to overloaded function could not be resolved; did you mean to call it?}}