We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7fefe94 commit c719809Copy full SHA for c719809
clang/test/Index/warning-flags.c
@@ -9,7 +9,7 @@ int *bar(float *f) { return f; }
9
// RUN: c-index-test -test-load-source-reparse 5 all -w %s 2>&1 | FileCheck -check-prefix=NOWARNINGS %s
10
// RUN: c-index-test -test-load-source all -w -O4 %s 2>&1 | FileCheck -check-prefix=NOWARNINGS %s
11
12
-// CHECK-BOTH-WARNINGS: error: non-void function does not return a value
+// CHECK-BOTH-WARNINGS: warning: non-void function does not return a value
13
// CHECK-BOTH-WARNINGS: warning: incompatible pointer types returning 'float *' from a function with result type 'int *'
14
15
// CHECK-SECOND-WARNING-NOT:non-void function does not return a value
0 commit comments