diff options
Diffstat (limited to 'test/SemaCXX/typo-correction-cxx17.cpp')
-rw-r--r-- | test/SemaCXX/typo-correction-cxx17.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/SemaCXX/typo-correction-cxx17.cpp b/test/SemaCXX/typo-correction-cxx17.cpp new file mode 100644 index 0000000000000..f137499753422 --- /dev/null +++ b/test/SemaCXX/typo-correction-cxx17.cpp @@ -0,0 +1,7 @@ +// RUN: %clang_cc1 -std=c++1z -fsyntax-only -verify %s + +namespace decomp_decl { +void f() { + auto [this_is_a_typo] = this_is_a_typp(); // expected-error{{use of undeclared identifier 'this_is_a_typp'}} +} +} |