[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Modules / cxx20-disable.cpp
blobd53c6b49ce5657fa6532416da390602f8b0268b7
1 // RUN: rm -rf %t && mkdir %t
2 // RUN: %clang_cc1 -x objective-c++ -std=c++20 -I %t %s -verify=enabled
3 // RUN: %clang_cc1 -x objective-c++ -std=c++20 -fno-cxx-modules -I %t %s -verify=disabled
5 // enabled-no-diagnostics
7 // The spelling of these errors is misleading.
8 // The important thing is Clang rejected C++20 modules syntax.
9 export module Foo; // disabled-error{{expected template}}
10 // disabled-error@-1{{unknown type name 'module'}}