Mercurial > hg > CbC > CbC_llvm
comparison clang/test/Sema/deref.c @ 236:c4bab56944e8 llvm-original
LLVM 16
author | kono |
---|---|
date | Wed, 09 Nov 2022 17:45:10 +0900 |
parents | 1d019706d866 |
children |
comparison
equal
deleted
inserted
replaced
232:70dce7da266c | 236:c4bab56944e8 |
---|---|
16 } | 16 } |
17 | 17 |
18 void foo3 (void) | 18 void foo3 (void) |
19 { | 19 { |
20 void* x = 0; | 20 void* x = 0; |
21 void* y = &*x; /* expected-warning{{address of an expression of type 'void'}} */ | 21 void* y = &*x; /* expected-warning{{address of an expression of type 'void'}} |
22 expected-warning {{ISO C does not allow indirection on operand of type 'void *'}} */ | |
22 } | 23 } |
23 | 24 |
24 extern const void cv1; | 25 extern const void cv1; |
25 | 26 |
26 const void *foo4 (void) | 27 const void *foo4 (void) |