]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/Sema/implicit-int.c
Update clang to r84119.
[FreeBSD/FreeBSD.git] / test / Sema / implicit-int.c
1 // RUN: clang-cc -fsyntax-only %s -verify -pedantic
2
3 foo() { // expected-warning {{type specifier missing, defaults to 'int'}}
4   return 0;
5 }
6
7 y;  // expected-warning {{type specifier missing, defaults to 'int'}}
8
9 // rdar://6131634
10 void 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
20 void
21 h19_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
26 struct foo {
27  __extension__ __attribute__((packed)) x : 4;
28 };
29
30
31
32