diff mbox

[1/6] keyword: add test case for reserved '_Static_assert'

Message ID 20170505015034.65164-2-luc.vanoostenryck@gmail.com (mailing list archive)
State Mainlined, archived
Headers show

Commit Message

Luc Van Oostenryck May 5, 2017, 1:50 a.m. UTC
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
---
 validation/reserved.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox

Patch

diff --git a/validation/reserved.c b/validation/reserved.c
index e5d7af862..2ca9ac40a 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:
  */