annotate clang/test/Sema/implicit-int.c @ 207:2e18cbf3894f

LLVM12
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 08 Jun 2021 06:07:14 +0900
parents 1d019706d866
children c4bab56944e8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // RUN: %clang_cc1 -fsyntax-only %s -verify -pedantic
anatofuz
parents:
diff changeset
2
anatofuz
parents:
diff changeset
3 foo() { // expected-warning {{type specifier missing, defaults to 'int'}}
anatofuz
parents:
diff changeset
4 return 0;
anatofuz
parents:
diff changeset
5 }
anatofuz
parents:
diff changeset
6
anatofuz
parents:
diff changeset
7 y; // expected-warning {{type specifier missing, defaults to 'int'}}
anatofuz
parents:
diff changeset
8
anatofuz
parents:
diff changeset
9 // rdar://6131634
anatofuz
parents:
diff changeset
10 void f((x)); // expected-warning {{type specifier missing, defaults to 'int'}}
anatofuz
parents:
diff changeset
11
anatofuz
parents:
diff changeset
12
anatofuz
parents:
diff changeset
13 // PR3702
anatofuz
parents:
diff changeset
14 #define PAD(ms10) { \
anatofuz
parents:
diff changeset
15 register i; \
anatofuz
parents:
diff changeset
16 }
anatofuz
parents:
diff changeset
17
anatofuz
parents:
diff changeset
18 #define ILPAD() PAD((NROW - tt.tt_row) * 10) /* 1 ms per char */
anatofuz
parents:
diff changeset
19
anatofuz
parents:
diff changeset
20 void
anatofuz
parents:
diff changeset
21 h19_insline(n) // expected-warning {{parameter 'n' was not declared, defaulting to type 'int'}}
anatofuz
parents:
diff changeset
22 {
anatofuz
parents:
diff changeset
23 ILPAD(); // expected-warning {{type specifier missing, defaults to 'int'}}
anatofuz
parents:
diff changeset
24 }
anatofuz
parents:
diff changeset
25
anatofuz
parents:
diff changeset
26 struct foo {
anatofuz
parents:
diff changeset
27 __extension__ __attribute__((packed)) x : 4; // expected-warning {{type specifier missing, defaults to 'int'}}
anatofuz
parents:
diff changeset
28 };