1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -fsyntax-only %s -verify -pedantic 2*f4a2713aSLionel Sambuc foo()3*f4a2713aSLionel Sambucfoo() { // expected-warning {{type specifier missing, defaults to 'int'}} 4*f4a2713aSLionel Sambuc return 0; 5*f4a2713aSLionel Sambuc } 6*f4a2713aSLionel Sambuc 7*f4a2713aSLionel Sambuc y; // expected-warning {{type specifier missing, defaults to 'int'}} 8*f4a2713aSLionel Sambuc 9*f4a2713aSLionel Sambuc // rdar://6131634 10*f4a2713aSLionel Sambuc void f((x)); // expected-warning {{type specifier missing, defaults to 'int'}} 11*f4a2713aSLionel Sambuc 12*f4a2713aSLionel Sambuc 13*f4a2713aSLionel Sambuc // PR3702 14*f4a2713aSLionel Sambuc #define PAD(ms10) { \ 15*f4a2713aSLionel Sambuc register i; \ 16*f4a2713aSLionel Sambuc } 17*f4a2713aSLionel Sambuc 18*f4a2713aSLionel Sambuc #define ILPAD() PAD((NROW - tt.tt_row) * 10) /* 1 ms per char */ 19*f4a2713aSLionel Sambuc 20*f4a2713aSLionel Sambuc void h19_insline(n)21*f4a2713aSLionel Sambuch19_insline(n) // expected-warning {{parameter 'n' was not declared, defaulting to type 'int'}} 22*f4a2713aSLionel Sambuc { 23*f4a2713aSLionel Sambuc ILPAD(); // expected-warning {{type specifier missing, defaults to 'int'}} 24*f4a2713aSLionel Sambuc } 25*f4a2713aSLionel Sambuc 26*f4a2713aSLionel Sambuc struct foo { 27*f4a2713aSLionel Sambuc __extension__ __attribute__((packed)) x : 4; // expected-warning {{type specifier missing, defaults to 'int'}} 28*f4a2713aSLionel Sambuc }; 29