aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/function.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Sema/function.c')
-rw-r--r--test/Sema/function.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Sema/function.c b/test/Sema/function.c
index f2aa8d9216..de970a09b3 100644
--- a/test/Sema/function.c
+++ b/test/Sema/function.c
@@ -32,3 +32,10 @@ void t11(){t10(1);}
// PR3208
void t12(int) {} // expected-error{{parameter name omitted}}
+// PR2790
+void t13() {
+ return 0; // expected-warning {{void function 't13' should not return a value}}
+}
+int t14() {
+ return; // expected-warning {{non-void function 't14' should return a value}}
+}