From e072a3fd872d871455649b737b3fd8ee28b0b222 Mon Sep 17 00:00:00 2001 From: Luc Van Oostenryck Date: Thu, 4 May 2017 23:59:38 +0200 Subject: [PATCH] keyword: add test case for reserved '_Static_assert' Signed-off-by: Luc Van Oostenryck --- validation/reserved.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/validation/reserved.c b/validation/reserved.c index e5d7af86..2ca9ac40 100644 --- a/validation/reserved.c +++ b/validation/reserved.c @@ -16,6 +16,7 @@ static int (__typeof__); static int (inline); static int (__inline); static int (__inline__); +static int (_Static_assert); /* * check-name: const et.al. are reserved identifiers * check-error-start: @@ -37,5 +38,6 @@ reserved.c:15:12: error: Trying to use reserved word '__typeof__' as identifier reserved.c:16:12: error: Trying to use reserved word 'inline' as identifier reserved.c:17:12: error: Trying to use reserved word '__inline' as identifier reserved.c:18:12: error: Trying to use reserved word '__inline__' as identifier +reserved.c:19:12: error: Trying to use reserved word '_Static_assert' as identifier * check-error-end: */ -- 2.11.4.GIT