]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/Sema/implicit-int.c
Import Clang, at r72732.
[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 }
5
6 y;  // expected-warning {{type specifier missing, defaults to 'int'}}
7
8 // rdar://6131634
9 void f((x));  // expected-warning {{type specifier missing, defaults to 'int'}}
10
11
12 // PR3702
13 #define PAD(ms10) { \
14         register i; \
15 }
16
17 #define ILPAD() PAD((NROW - tt.tt_row) * 10)    /* 1 ms per char */
18
19 void
20 h19_insline(n)  // expected-warning {{parameter 'n' was not declared, defaulting to type 'int'}}
21 {
22         ILPAD();  // expected-warning {{type specifier missing, defaults to 'int'}}
23 }
24
25 struct foo {
26  __extension__ __attribute__((packed)) x : 4; // expected-warning {{type specifier missing, defaults to 'int'}}
27 };
28
29
30
31