diff options
Diffstat (limited to 'test/Sema/typo-correction.c')
-rw-r--r-- | test/Sema/typo-correction.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Sema/typo-correction.c b/test/Sema/typo-correction.c index ff43064d5b75..4ef50570899c 100644 --- a/test/Sema/typo-correction.c +++ b/test/Sema/typo-correction.c @@ -49,3 +49,9 @@ extern double cabs(_Complex double z); void fn1() { cabs(errij); // expected-error {{use of undeclared identifier 'errij'}} } + +extern long afunction(int); // expected-note {{'afunction' declared here}} +void fn2() { + f(THIS_IS_AN_ERROR, // expected-error {{use of undeclared identifier 'THIS_IS_AN_ERROR'}} + afunction(afunction_)); // expected-error {{use of undeclared identifier 'afunction_'; did you mean 'afunction'?}} +} |