1 typedef const int ci_t; 2 typedef int ia_t[2]; 3 typedef const int cia_t[2]; 4 5 static const int ci__a[2]; 6 static ci_t cit_a[2]; 7 static const ia_t c_iat; 8 static cia_t ciat_; 9 static cia_t ciata[2]; 10 11 static const void *const ok_ci__a = &ci__a; 12 static void *const ko_ci__a = &ci__a; 13 static const void *const ok_cit_a = &cit_a; 14 static void *const ko_cit_a = &cit_a; 15 static const void *const ok_c_iat = &c_iat; 16 static void *const ko_c_iat = &c_iat; 17 static const void *const ok_ciat_ = &ciat_; 18 static void *const ko_ciat_ = &ciat_; 19 static const void *const ok_ciata = &ciata; 20 static void *const ko_ciata = &ciata; 21 22 static volatile int vi__a[2]; 23 static volatile void *const ok_vi__a = &vi__a; 24 static void *const ko_vi__a = &vi__a; 25 26 /* 27 * check-name: array-quals1 28 * 29 * check-error-start 30 eval/array-quals1.c:12:38: warning: incorrect type in initializer (different modifiers) 31 eval/array-quals1.c:12:38: expected void *static const [toplevel] ko_ci__a 32 eval/array-quals1.c:12:38: got int const ( * )[2] 33 eval/array-quals1.c:14:38: warning: incorrect type in initializer (different modifiers) 34 eval/array-quals1.c:14:38: expected void *static const [toplevel] ko_cit_a 35 eval/array-quals1.c:14:38: got int const [usertype] ( * )[2] 36 eval/array-quals1.c:16:38: warning: incorrect type in initializer (different modifiers) 37 eval/array-quals1.c:16:38: expected void *static const [toplevel] ko_c_iat 38 eval/array-quals1.c:16:38: got int const ( * )[2] 39 eval/array-quals1.c:18:38: warning: incorrect type in initializer (different modifiers) 40 eval/array-quals1.c:18:38: expected void *static const [toplevel] ko_ciat_ 41 eval/array-quals1.c:18:38: got int const ( * )[2] 42 eval/array-quals1.c:20:38: warning: incorrect type in initializer (different modifiers) 43 eval/array-quals1.c:20:38: expected void *static const [toplevel] ko_ciata 44 eval/array-quals1.c:20:38: got int const [usertype] ( * )[2][2] 45 eval/array-quals1.c:24:41: warning: incorrect type in initializer (different modifiers) 46 eval/array-quals1.c:24:41: expected void *static const [toplevel] ko_vi__a 47 eval/array-quals1.c:24:41: got int volatile ( * )[2] 48 * check-error-end 49 */ 50