a3d0ae1758
Clang 3.4 uses C99 by default, and Clang 3.6 uses C11 by default: http://thread.gmane.org/gmane.comp.compilers.clang.devel/39379 GNU 4.9 uses C90 by default, and GNU 5.0 uses C11 by default: https://gcc.gnu.org/gcc-5/changes.html Test that the default compiler settings result in the expected dialect macros being defined for both C and CXX. Remove the unused main.c file from the CompileFeatures unit test.
26 lines
367 B
C++
26 lines
367 B
C++
|
|
template<long l>
|
|
struct Outputter;
|
|
|
|
#if DEFAULT_CXX14
|
|
# if __cplusplus != 201402L
|
|
Outputter<__cplusplus> o;
|
|
# endif
|
|
#elif DEFAULT_CXX11
|
|
# if __cplusplus != 201103L
|
|
Outputter<__cplusplus> o;
|
|
# endif
|
|
#else
|
|
# if !DEFAULT_CXX98
|
|
# error Buildsystem error
|
|
# endif
|
|
# if __cplusplus != 199711L
|
|
Outputter<__cplusplus> o;
|
|
# endif
|
|
#endif
|
|
|
|
int main()
|
|
{
|
|
return 0;
|
|
}
|