summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/conditional.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Sema/conditional.c')
-rw-r--r--clang/test/Sema/conditional.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/Sema/conditional.c b/clang/test/Sema/conditional.c
index c3dbe1321b6..3d7bccaf975 100644
--- a/clang/test/Sema/conditional.c
+++ b/clang/test/Sema/conditional.c
@@ -6,9 +6,9 @@ void _efree(void *ptr);
void free(void *ptr);
int _php_stream_free1() {
- return (1 ? free(0) : _efree(0)); // expected-error {{incompatible type returning 'void', expected 'int'}}
+ return (1 ? free(0) : _efree(0)); // expected-error {{returning 'void' from a function with incompatible result type 'int'}}
}
int _php_stream_free2() {
- return (1 ? _efree(0) : free(0)); // expected-error {{incompatible type returning 'void', expected 'int'}}
+ return (1 ? _efree(0) : free(0)); // expected-error {{returning 'void' from a function with incompatible result type 'int'}}
}
OpenPOWER on IntegriCloud