llvm-project/clang/test/Preprocessor/is_target_environment_version.c
Alex Lorenz 3b288c6e1b __is_target_environment: Check the environment after parsing it
This ensures that target triples with environment versions can still work with
__is_target_environment.

llvm-svn: 320854
2017-12-15 20:07:53 +00:00

7 lines
186 B
C

// RUN: %clang_cc1 -fsyntax-only -triple x86_64-pc-windows-msvc18.0.0 -verify %s
// expected-no-diagnostics
#if !__is_target_environment(msvc)
#error "mismatching environment"
#endif