commit | 940ab971c580ca03da2e68ec92b9c0f7acfe6988 | [log] [tgz] |
---|---|---|
author | Steve Naroff <snaroff@apple.com> | Thu Apr 30 17:53:16 2009 +0000 |
committer | Steve Naroff <snaroff@apple.com> | Thu Apr 30 17:53:16 2009 +0000 |
tree | cd0fac5de26345361b09064b78e4ded02bccacb5 | |
parent | 18857644059c45da6776f1a288eec7b4cf3a844a [diff] [blame] |
Name the "return-type" DiagGroup and reference it in a few places. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70500 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/Sema/return.c b/test/Sema/return.c index b32b2e9..d96cede 100644 --- a/test/Sema/return.c +++ b/test/Sema/return.c
@@ -7,3 +7,6 @@ return; // expected-warning {{non-void function 't14' should return a value}} } +void t15() { + return 1; // expected-warning {{void function 't15' should not return a value}} +}