llvm-project/clang/test/Sema/redefinition.c

6 lines
173 B
C

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