// filename:c2011-6-7-6-ex.c // original examples and/or notes: // (c) ISO/IEC JTC1 SC22 WG14 N1570, April 12, 2011 // C2011 6.7.6 Type names // compile and output mechanism: // (c) Ogawa Kiyoshi, kaizen@gifu-u.ac.jp, December.xx, 2013 // compile errors and/or wornings: // (c) Apple LLVM version 4.2 (clang-425.0.27) (based on LLVM 3.2svn) // Target: x86_64-apple-darwin11.4.2 //Thread model: posix // (c) LLVM 2003-2009 University of Illinois at Urbana-Champaign. #include // Example int a; int * b; int *c[3]; int (*)[3] ; int (*)[*] ; int *f() ; int (*)(void); int (*const [])(unsigned int, ...) ; int main(void) { return printf("6.7.6 Type names %d \n",a); } // output may be c2011-6-7-7-ex.c:16:7: error: expected identifier or '(' int (*)[3] ; ^ c2011-6-7-7-ex.c:17:7: error: expected identifier or '(' int (*)[*] ; ^ c2011-6-7-7-ex.c:19:7: error: expected identifier or '(' int (*)(void); ^ c2011-6-7-7-ex.c:20:13: error: expected identifier or '(' int (*const [])(unsigned int, ...) ; ^ 4 errors generated.