llvm-for-llvmta/tools/clang/test/Lexer/modules-ts.cpp

12 lines
326 B
C++
Raw Normal View History

2022-04-25 13:02:35 +02:00
// RUN: %clang_cc1 -fsyntax-only %s
// RUN: %clang_cc1 -fmodules-ts -DMODULES -fsyntax-only %s
#ifdef MODULES
#define MODULES_KEYWORD(NAME) _Static_assert(!__is_identifier(NAME), #NAME)
#else
#define MODULES_KEYWORD(NAME) _Static_assert(__is_identifier(NAME), #NAME)
#endif
MODULES_KEYWORD(import);
MODULES_KEYWORD(module);