brintos

brintos / llvm-project-archived public Read only

0
0
Text · 475 B · d53c6b4 Raw
11 lines · cpp
1// RUN: rm -rf %t && mkdir %t2// RUN: %clang_cc1 -x objective-c++ -std=c++20                  -I %t %s -verify=enabled3// RUN: %clang_cc1 -x objective-c++ -std=c++20 -fno-cxx-modules -I %t %s -verify=disabled4 5// enabled-no-diagnostics6 7// The spelling of these errors is misleading.8// The important thing is Clang rejected C++20 modules syntax.9export module Foo; // disabled-error{{expected template}}10                   // disabled-error@-1{{unknown type name 'module'}}11