From 941c08ae256896e1ebd51af0a264000a55082630 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Sat, 29 Dec 2018 13:35:26 +0100 Subject: [PATCH] Also test enumerators in deprecation compiler checks --- cmake/checks/check_02_compiler_features.cmake | 10 ++++++++++ 1 file changed, 10 insertions(+) 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>; -- 2.39.5