From: Daniel Arndt Date: Sat, 29 Dec 2018 12:35:26 +0000 (+0100) Subject: Also test enumerators in deprecation compiler checks X-Git-Tag: v9.1.0-rc1~473^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F7557%2Fhead;p=dealii.git Also test enumerators in deprecation compiler checks --- diff --git a/cmake/checks/check_02_compiler_features.cmake b/cmake/checks/check_02_compiler_features.cmake index 1b48a3c8d6..62741dc8e0 100644 --- a/cmake/checks/check_02_compiler_features.cmake +++ b/cmake/checks/check_02_compiler_features.cmake @@ -310,6 +310,11 @@ CHECK_CXX_SOURCE_COMPILES( [[deprecated]] void test(); }; + enum color + { + red [[deprecated]] + }; + template 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 struct foo {}; using bar __attribute__((deprecated)) = foo<2>;