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