相关代码 |
|
/* Test for ICE on incomplete-array-of-VLA compound literal. */ /* Origin: Joseph Myers */ /* { dg-do compile } */ /* { dg-options "" } */ const int i = 1; void foo() { void *p = (char [][i]){ "" }; } /* { dg-error "error: compound literal has variable size" } */
相关资源 |
|