Files
llvm-project/clang/test/Sema/redefinition.c
Douglas Gregor 89f238cbe1 Clean up handling of function redeclarations
llvm-svn: 50021
2008-04-21 02:02:58 +00:00

6 lines
172 B
C

// RUN: clang %s -fsyntax-only -verify
int f(int) { } // expected-error{{previous definition is here}}
int f(int);
int f(int) { } // expected-error{{redefinition of 'f'}}