]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Also test enumerators in deprecation compiler checks 7557/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Sat, 29 Dec 2018 12:35:26 +0000 (13:35 +0100)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Sat, 29 Dec 2018 12:35:26 +0000 (13:35 +0100)
cmake/checks/check_02_compiler_features.cmake

index 1b48a3c8d66495432b7a78952fc2230eb28e27e4..62741dc8e0a07a4540ec7463a8d44733af13d273 100644 (file)
@@ -310,6 +310,11 @@ CHECK_CXX_SOURCE_COMPILES(
             [[deprecated]] void test();
           };
 
+          enum color
+          {
+            red [[deprecated]]
+          };
+
           template <int dim>
           struct foo {};
           using bar [[deprecated]] = foo<2>;
@@ -330,6 +335,11 @@ CHECK_CXX_SOURCE_COMPILES(
             __attribute__((deprecated)) void test();
           };
 
+          enum color
+          {
+            red __attribute__((deprecated))
+          };
+
           template <int dim>
           struct foo {};
           using bar __attribute__((deprecated)) = foo<2>;

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.