cling/test/ErrorRecovery/Redeclarables.C
2012-09-05 09:37:39 +00:00

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