clang-1/test/Sema/redefinition.c

6 строки
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'}}