diff options
| author | Nuno Lopes <nunoplopes@sapo.pt> | 2009-01-28 00:44:33 +0000 |
|---|---|---|
| committer | Nuno Lopes <nunoplopes@sapo.pt> | 2009-01-28 00:44:33 +0000 |
| commit | b81d94ff5805f2cd7d4a16db2110c41d6c9040e0 (patch) | |
| tree | c2a7f472d70248a33a04f1d017c1b67cf347de15 /clang | |
| parent | bb2f25b40f115841f7e159821528ade49ce82c21 (diff) | |
| download | bcm5719-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.c | 3 |
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; |

