05ba8a3a07
git-svn-id: http://root.cern.ch/svn/root/trunk@45844 27541ba8-7e3a-0410-8455-c3a389f83636
17 lines
468 B
C++
17 lines
468 B
C++
// This file contains an error (redefinition of '__my_i') and it gets included
|
|
// so all the contents should be reverted from the AST transparently.
|
|
|
|
// Template specializations
|
|
template<> int TemplatedF(int t){return t + 10;}
|
|
|
|
// Aliases
|
|
typedef struct A AStruct;
|
|
|
|
|
|
// Overloads
|
|
int OverloadedF(int i){ return i + 10;};
|
|
|
|
// Redeclarations
|
|
int __my_i = 0; // expected-note {{previous definition is here}}
|
|
int __my_i = 0; // expected-error {{redefinition of '__my_i'}}
|