merge-decls.c revision adbbd0c625806b9d6183920d33eb78566a8f3366
1// RUN: clang %s -verify -fsyntax-only 2 3void foo(void); 4void foo(void) {} 5void foo(void); 6void foo(void); // expected-error{{previous definition is here}} 7 8void foo(int); // expected-error {{redefinition of 'foo'}} 9 10int funcdef() 11{ 12 return 0; 13} 14 15int funcdef(); 16 17int funcdef2() { return 0; } // expected-error{{previous definition is here}} 18int funcdef2() { return 0; } // expected-error {{redefinition of 'funcdef2'}} 19 20