05ba8a3a07
git-svn-id: http://root.cern.ch/svn/root/trunk@45844 27541ba8-7e3a-0410-8455-c3a389f83636
12 lines
415 B
C
12 lines
415 B
C
// RUN: cat %s | %cling -Xclang -verify
|
|
|
|
class MyClass{};
|
|
class MyClass{} // expected-error {{redefinition of 'MyClass'}} expected-note {{previous definition is here}}
|
|
MyClass s;
|
|
MyClass s; // expected-error {{redefinition of 's'}} expected-note {{previous definition is here}}
|
|
|
|
const char* a = "test";
|
|
const char* a = ""; // expected-error {{redefinition of 'a'}} expected-note {{previous definition is here}}
|
|
|
|
.q
|