[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Sema / typerep-typespec.c
blob001131306a4a9f21aa6f56d53354bd9e6dc31e2d
1 // RUN: %clang_cc1 -std=c11 %s -fsyntax-only -verify
2 // REQUIRES: asserts
4 struct dispatch_object_s;
5 void _dispatch_queue_get_head(struct dispatch_object_s *volatile dq_items_head) {
6 (_Atomic __typeof__(dq_items_head) *)0; // expected-warning{{expression result unused}}
8 void g(void) {
9 (_Atomic __typeof__(struct dispatch_object_s *volatile) *)0; // expected-warning{{expression result unused}}