CMake/Tests/CMakeCommands/target_compile_options/consumer.c
Kitware Robot d7204e649e Revise C++ coding style using clang-format-6.0
Run the `clang-format.bash` script to update all our C and C++ code to a
new style defined by `.clang-format`.  Use `clang-format` version 6.0.

* If you reached this commit for a line in `git blame`, re-run the blame
  operation starting at the parent of this commit to see older history
  for the content.

* See the parent commit for instructions to rebase a change across this
  style transition commit.
2018-06-01 09:53:42 -04:00

41 lines
742 B
C

// Visual Studio allows only one set of flags for C and C++.
// In a target using C++ we pick the C++ flags even for C sources.
#ifdef TEST_LANG_DEFINES_FOR_VISUAL_STUDIO
# ifndef CONSUMER_LANG_CXX
# error Expected CONSUMER_LANG_CXX
# endif
# ifdef CONSUMER_LANG_C
# error Unexpected CONSUMER_LANG_C
# endif
# if !LANG_IS_CXX
# error Expected LANG_IS_CXX
# endif
# if LANG_IS_C
# error Unexpected LANG_IS_C
# endif
#else
# ifdef CONSUMER_LANG_CXX
# error Unexpected CONSUMER_LANG_CXX
# endif
# ifndef CONSUMER_LANG_C
# error Expected CONSUMER_LANG_C
# endif
# if !LANG_IS_C
# error Expected LANG_IS_C
# endif
# if LANG_IS_CXX
# error Unexpected LANG_IS_CXX
# endif
#endif
void consumer_c()
{
}