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