Files
Brad King b3138fce0f Tests/CompileFeatures: Cover <LANG>_STANDARD properties
Extend commit c37e279014 (Tests/CompileFeatures: Cover c_std_## and
cxx_std_## meta-features, 2024-04-02, v3.30.0-rc1~279^2~1) to cover the
per-language standard level target properties.
2026-04-24 11:29:42 -04:00

8 lines
227 B
C

#include "c_std.h"
#if defined(C_STD) && C_STD > C_STD_99 && !defined(C_STD_MISSING)
# error "C_STANDARD 99 honored as higher standard"
#endif
#if defined(C_STD) && C_STD < C_STD_99
# error "C_STANDARD 99 not honored"
#endif