| 1 |
// { dg-do assemble } |
| 2 |
// { dg-options "-pedantic-errors" } |
| 3 |
// GROUPS passed sizeof |
| 4 |
// ARM $5.3.2 |
| 5 |
|
| 6 |
int |
| 7 |
main() |
| 8 |
{ |
| 9 |
// sizeof may not be applied to the type void |
| 10 |
int l = sizeof (void);// { dg-error "11:invalid application of .sizeof. to a void type" } .* |
| 11 |
|
| 12 |
return 0; |
| 13 |
} |