summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/typo-correction.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Sema/typo-correction.c')
-rw-r--r--clang/test/Sema/typo-correction.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/Sema/typo-correction.c b/clang/test/Sema/typo-correction.c
index 59f022dfe52..78007015dca 100644
--- a/clang/test/Sema/typo-correction.c
+++ b/clang/test/Sema/typo-correction.c
@@ -80,3 +80,10 @@ int h() {
g(x, 5 ? z : 0); // expected-error 2 {{use of undeclared identifier}}
(x, 5 ? z : 0); // expected-error 2 {{use of undeclared identifier}}
}
+
+__attribute__((overloadable)) void func_overloadable(int);
+__attribute__((overloadable)) void func_overloadable(float);
+
+void overloadable_callexpr(int arg) {
+ func_overloadable(ar); //expected-error{{use of undeclared identifier}}
+}
OpenPOWER on IntegriCloud