Searched defs:dispatch_once (Results 1 - 1 of 1) sorted by relevance

/external/clang/test/Analysis/
H A Dunix-fns.c39 void dispatch_once(dispatch_once_t *predicate, dispatch_block_t block);
62 do { if (__builtin_expect(*(&pred), ~0l) != ~0l) dispatch_once((&pred), (^() {})); } while (0); // expected-warning{{Call to 'dispatch_once' uses the local variable 'pred' for the predicate value}}
66 do { if (__builtin_expect(*(&pred), ~0l) != ~0l) dispatch_once((&pred), (^() {})); } while (0); // no-warning
172 // Test dispatch_once being a macro that wraps a call to _dispatch_once, which in turn
173 // calls the real dispatch_once.
177 dispatch_once(predicate, block);
180 #define dispatch_once _dispatch_once macro
184 dispatch_once(&pred, ^(){}); // expected-warning {{Call to 'dispatch_once' use
[all...]

Completed in 75 milliseconds