summaryrefslogtreecommitdiffstats
path: root/Tests/CompileFeatures/msvc_permissive.cxx
blob: a8f2ff3fd53fb0c7f113c1dbb0438ee787f715bc (plain)
1
2
3
4
5
6
7
8
9
#if !defined(_MSVC_LANG) || _MSVC_LANG < 202002L
#  error "This source must be compiled with MSVC as C++20 or later."
#endif
// Test a construct that is allowed by MSVC only with 'cl -permissive'.
enum class X
{
  Y = 1
};
int array[X::Y];