1 // RUN: %clang_cc1 -fsyntax-only -verify %s
3 // C++ [basic.def.odr]p1:
4 // No translation unit shall contain more than one definition of any
7 // Bad: in C++, these are both definitions. None of that C99 tentative stuff.
8 int i
; // expected-note {{previous}}
9 int i
; // expected-error {{redefinition}}
19 // Bad. The important thing here is that we don't emit the diagnostic twice.
20 int l
= 1; // expected-note {{previous}}
21 int l
= 2; // expected-error {{redefinition}}