05ba8a3a07
git-svn-id: http://root.cern.ch/svn/root/trunk@45844 27541ba8-7e3a-0410-8455-c3a389f83636
28 lines
390 B
C
28 lines
390 B
C
// RUN: cat %s | %cling -Xclang -verify -I%p | FileCheck %s
|
|
|
|
// Test the removal of decls from the redeclaration chain, which are marked as
|
|
// redeclarables.
|
|
|
|
extern int my_int;
|
|
.rawInput 1
|
|
int my_funct();
|
|
.rawInput 0
|
|
|
|
#include "Redeclarables.h"
|
|
|
|
.rawInput 1
|
|
int my_funct() {
|
|
return 20;
|
|
}
|
|
.rawInput 0
|
|
|
|
int my_int = 20;
|
|
|
|
my_int
|
|
// CHECK: (int) 20
|
|
|
|
my_funct()
|
|
// CHECK: (int const) 20
|
|
|
|
.q
|