You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
612 B
14 lines
612 B
7 months ago
|
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
||
|
|
||
|
struct spinlock_t {
|
||
|
int lock;
|
||
|
} audit_skb_queue;
|
||
|
|
||
|
void fn1() {
|
||
|
audit_skb_queue = (lock); // expected-error {{use of undeclared identifier 'lock'; did you mean 'long'?}}
|
||
|
} // expected-error@-1 {{assigning to 'struct spinlock_t' from incompatible type '<overloaded function type>'}}
|
||
|
|
||
|
void fn2() {
|
||
|
audit_skb_queue + (lock); // expected-error {{use of undeclared identifier 'lock'; did you mean 'long'?}}
|
||
|
} // expected-error@-1 {{reference to overloaded function could not be resolved; did you mean to call it?}}
|