annotate clang/test/Index/warning-flags.c @ 173:0572611fdcc8 llvm10 llvm12

reorgnization done
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 11:55:54 +0900
parents 1d019706d866
children c4bab56944e8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 int foo() { }
anatofuz
parents:
diff changeset
2 int *bar(float *f) { return f; }
anatofuz
parents:
diff changeset
3
anatofuz
parents:
diff changeset
4 // RUN: c-index-test -test-load-source all %s 2>&1|FileCheck -check-prefix=CHECK-BOTH-WARNINGS %s
anatofuz
parents:
diff changeset
5 // RUN: c-index-test -test-load-source-reparse 5 all %s 2>&1|FileCheck -check-prefix=CHECK-BOTH-WARNINGS %s
anatofuz
parents:
diff changeset
6 // RUN: c-index-test -test-load-source all -Wno-return-type %s 2>&1|FileCheck -check-prefix=CHECK-SECOND-WARNING %s
anatofuz
parents:
diff changeset
7 // RUN: c-index-test -test-load-source-reparse 5 all -Wno-return-type %s 2>&1|FileCheck -check-prefix=CHECK-SECOND-WARNING %s
anatofuz
parents:
diff changeset
8 // RUN: c-index-test -test-load-source all -w %s 2>&1 | FileCheck -check-prefix=NOWARNINGS %s
anatofuz
parents:
diff changeset
9 // RUN: c-index-test -test-load-source-reparse 5 all -w %s 2>&1 | FileCheck -check-prefix=NOWARNINGS %s
anatofuz
parents:
diff changeset
10 // RUN: c-index-test -test-load-source all -w -O4 %s 2>&1 | FileCheck -check-prefix=NOWARNINGS %s
anatofuz
parents:
diff changeset
11
anatofuz
parents:
diff changeset
12 // CHECK-BOTH-WARNINGS: warning: non-void function does not return a value
anatofuz
parents:
diff changeset
13 // CHECK-BOTH-WARNINGS: warning: incompatible pointer types returning 'float *' from a function with result type 'int *'
anatofuz
parents:
diff changeset
14
anatofuz
parents:
diff changeset
15 // CHECK-SECOND-WARNING-NOT:non-void function does not return a value
anatofuz
parents:
diff changeset
16 // CHECK-SECOND-WARNING: warning: incompatible pointer types returning 'float *' from a function with result type 'int *'
anatofuz
parents:
diff changeset
17
anatofuz
parents:
diff changeset
18 // NOWARNINGS-NOT: warning: