]> granicus.if.org Git - clang/commitdiff
add test for PR2502, which was already fixed some time ago
authorNuno Lopes <nunoplopes@sapo.pt>
Wed, 28 Jan 2009 00:44:33 +0000 (00:44 +0000)
committerNuno Lopes <nunoplopes@sapo.pt>
Wed, 28 Jan 2009 00:44:33 +0000 (00:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63160 91177308-0d34-0410-b5e6-96231b3b80d8

test/Sema/merge-decls.c

index b26532c5eace59dde1972a16c5ebdb78fb23ae77..0d3cce36bdc5d7448a7922e3c7902f315821c4af 100644 (file)
@@ -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;