aboutsummaryrefslogtreecommitdiff
path: root/gcc/d/d-tree.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/d/d-tree.h')
-rw-r--r--gcc/d/d-tree.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/d/d-tree.h b/gcc/d/d-tree.h
index 0b3c5ed..cff832c 100644
--- a/gcc/d/d-tree.h
+++ b/gcc/d/d-tree.h
@@ -59,7 +59,8 @@ typedef Array<Expression *> Expressions;
Usage of DECL_LANG_FLAG_?:
0: LABEL_VARIABLE_CASE (in LABEL_DECL).
- DECL_BUILT_IN_CTFE (in FUNCTION_DECL). */
+ DECL_BUILT_IN_CTFE (in FUNCTION_DECL).
+ 1: DECL_IN_UNITTEST_CONDITION_P (in FUNCTION_DECL). */
/* The kinds of scopes we recognize. */
@@ -380,6 +381,10 @@ lang_tree_node
#define DECL_BUILT_IN_CTFE(NODE) \
(DECL_LANG_FLAG_0 (FUNCTION_DECL_CHECK (NODE)))
+/* True if the decl is only compiled in when unittests are turned on. */
+#define DECL_IN_UNITTEST_CONDITION_P(NODE) \
+ (DECL_LANG_FLAG_1 (FUNCTION_DECL_CHECK (NODE)))
+
enum d_tree_index
{
DTI_VTABLE_ENTRY_TYPE,