summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorNuno Lopes <nunoplopes@sapo.pt>2009-01-28 00:44:33 +0000
committerNuno Lopes <nunoplopes@sapo.pt>2009-01-28 00:44:33 +0000
commitb81d94ff5805f2cd7d4a16db2110c41d6c9040e0 (patch)
treec2a7f472d70248a33a04f1d017c1b67cf347de15 /clang
parentbb2f25b40f115841f7e159821528ade49ce82c21 (diff)
downloadbcm5719-llvm-b81d94ff5805f2cd7d4a16db2110c41d6c9040e0.tar.gz
bcm5719-llvm-b81d94ff5805f2cd7d4a16db2110c41d6c9040e0.zip
add test for PR2502, which was already fixed some time ago
llvm-svn: 63160
Diffstat (limited to 'clang')
-rw-r--r--clang/test/Sema/merge-decls.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/test/Sema/merge-decls.c b/clang/test/Sema/merge-decls.c
index b26532c5eac..0d3cce36bdc 100644
--- a/clang/test/Sema/merge-decls.c
+++ b/clang/test/Sema/merge-decls.c
@@ -17,3 +17,6 @@ int funcdef();
int funcdef2() { return 0; } // expected-note {{previous definition is here}}
int funcdef2() { return 0; } // expected-error {{redefinition of 'funcdef2'}}
+// PR2502
+void (*f)(void);
+void (*f)() = 0;
OpenPOWER on IntegriCloud