summaryrefslogtreecommitdiffstats
path: root/clang/test/Parser/declarators.c
diff options
context:
space:
mode:
authorMike Stump <mrs@apple.com>2009-07-22 00:43:08 +0000
committerMike Stump <mrs@apple.com>2009-07-22 00:43:08 +0000
commit753d1209753c9d29f845beb08beb09ef2f94eeb4 (patch)
tree554760f783d2cc70614623df12a606c0a3ca294f /clang/test/Parser/declarators.c
parent891436d54c94798ca1fa07deddd58e2929b9041d (diff)
downloadbcm5719-llvm-753d1209753c9d29f845beb08beb09ef2f94eeb4.tar.gz
bcm5719-llvm-753d1209753c9d29f845beb08beb09ef2f94eeb4.zip
Prep for new warning.
llvm-svn: 76709
Diffstat (limited to 'clang/test/Parser/declarators.c')
-rw-r--r--clang/test/Parser/declarators.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/clang/test/Parser/declarators.c b/clang/test/Parser/declarators.c
index 26e8027d107..da8327a1e83 100644
--- a/clang/test/Parser/declarators.c
+++ b/clang/test/Parser/declarators.c
@@ -18,7 +18,7 @@ int *A;
struct str;
-int test2(int *P, int A) {
+void test2(int *P, int A) {
struct str;
// Hard case for array decl, not Array[*].
@@ -26,11 +26,11 @@ int test2(int *P, int A) {
}
typedef int atype;
-int test3(x,
- atype /* expected-error {{unexpected type name 'atype': expected identifier}} */
- ) int x, atype; {}
+void test3(x,
+ atype /* expected-error {{unexpected type name 'atype': expected identifier}} */
+ ) int x, atype; {}
-int test4(x, x) int x; {} /* expected-error {{redefinition of parameter 'x'}} */
+void test4(x, x) int x; {} /* expected-error {{redefinition of parameter 'x'}} */
// PR3031
OpenPOWER on IntegriCloud