summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/typo-correction-delayed.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/SemaCXX/typo-correction-delayed.cpp')
-rw-r--r--clang/test/SemaCXX/typo-correction-delayed.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/SemaCXX/typo-correction-delayed.cpp b/clang/test/SemaCXX/typo-correction-delayed.cpp
index 124f0ec2a1c..bff1d7633fc 100644
--- a/clang/test/SemaCXX/typo-correction-delayed.cpp
+++ b/clang/test/SemaCXX/typo-correction-delayed.cpp
@@ -93,3 +93,12 @@ void f(NestedNode *node) {
NestedNode *next = node->Next(); // expected-error-re {{no member named 'Next' in 'initializerCorrections::NestedNode'{{$}}}}
}
}
+
+namespace PR21669 {
+void f(int *i) {
+ // Check that arguments to a builtin with custom type checking are corrected
+ // properly, since calls to such builtins bypass much of the normal code path
+ // for building and checking the call.
+ __atomic_load(i, i, something_something); // expected-error-re {{use of undeclared identifier 'something_something'{{$}}}}
+}
+}
OpenPOWER on IntegriCloud