We must have a function implementation to take its address

This commit is contained in:
Philippe Canal 2013-08-31 13:33:30 -05:00 committed by sftnight
parent fc90db23ba
commit f13c81470a

View File

@ -34,7 +34,10 @@ one // CHECK: (double) 1.000
int one; // expected-error {{redefinition of 'one' with a different type: 'int' vs 'double'}} expected-note {{previous definition is here}}
// Make sure that PR#98434 doesn't get reintroduced.
void f(int);
.rawInput
void f(int) { return; }
.rawInput
gCling->evaluate("f", V);
V.isValid() //CHECK: (_Bool) true
// end PR#98434