summaryrefslogtreecommitdiffstats
path: root/Tests/CompileFeatures/default_dialect.cpp
blob: 9b65b424a276c4bc64d67f7ca5f772319b732861 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30

template <long l>
struct Outputter;

#if DEFAULT_CXX17
#if __cplusplus <= 201402L
Outputter<__cplusplus> o;
#endif
#elif 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 && __cplusplus != 1 &&                             \
  !defined(__GXX_EXPERIMENTAL_CXX0X__)
Outputter<__cplusplus> o;
#endif
#endif

int main()
{
  return 0;
}