aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/redefinition.c
blob: c45779fdeeff394ec1dd6555b30c34b4dfd3f5fa (plain)
1
2
3
4
5
// 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'}}