msg_072.c revision 1.8
11.8Srillig/* $NetBSD: msg_072.c,v 1.8 2023/07/07 19:45:22 rillig Exp $ */ 21.1Srillig# 3 "msg_072.c" 31.1Srillig 41.1Srillig// Test for message: typedef declares no type name [72] 51.1Srillig 61.8Srillig/* lint1-extra-flags: -X 351 */ 71.8Srillig 81.4Srillig/* expect+1: warning: typedef declares no type name [72] */ 91.4Srilligtypedef int; 101.2Srillig 111.2Srilligtypedef int number; 121.4Srillig 131.4Srillig/* expect+1: warning: typedef declares no type name [72] */ 141.4Srilligconst typedef; 151.5Srillig 161.5Srilligvoid 171.5Srilligcover_cgram_declaration(void) 181.5Srillig{ 191.5Srillig 201.5Srillig /* expect+1: warning: typedef declares no type name [72] */ 211.5Srillig typedef const; 221.5Srillig 231.5Srillig /* expect+1: warning: empty declaration [2] */ 241.5Srillig const; 251.5Srillig 261.5Srillig /* expect+1: warning: typedef declares no type name [72] */ 271.5Srillig typedef int; 281.5Srillig 291.5Srillig /* expect+1: warning: empty declaration [2] */ 301.5Srillig int; 311.6Srillig 321.6Srillig /* expect+1: error: syntax error 'missing base type for typedef' [249] */ 331.6Srillig typedef not_a_type; 341.6Srillig 351.7Srillig /* expect+1: error: old-style declaration; add 'int' [1] */ 361.6Srillig static missing_type; 371.5Srillig} 38