xref: /llvm-project/clang/test/Sema/typerep-typespec.c (revision b159108bc5ebd7f37373896ece1da8f49612f7a6)
1 // RUN: %clang_cc1 -std=c11 %s -fsyntax-only -verify
2 // REQUIRES: asserts
3 
4 struct dispatch_object_s;
_dispatch_queue_get_head(struct dispatch_object_s * volatile dq_items_head)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}}
7 }
g(void)8 void g(void) {
9   (_Atomic __typeof__(struct dispatch_object_s *volatile) *)0; // expected-warning{{expression result unused}}
10 }
11