Chris Lattner | e3995fe | 2007-11-06 06:07:26 +0000 | [diff] [blame] | 1 | // RUN: clang %s -verify -fsyntax-only |
2 | |||||
3 | void foo(void); | ||||
4 | void foo(void) {} // expected-error{{previous definition is here}} | ||||
5 | void foo(void); | ||||
6 | void foo(void); | ||||
7 | |||||
8 | void foo(int); // expected-error {{redefinition of 'foo'}} |