summaryrefslogtreecommitdiff
path: root/test/Sema/generic-selection.c
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2016-02-24 21:33:38 +0000
committerDimitry Andric <dim@FreeBSD.org>2016-02-24 21:33:38 +0000
commit283b7f175721fa9e0e13f59243932e7b26dffc26 (patch)
tree61772978903747ad1b63b5109cb3dedcb1adc05e /test/Sema/generic-selection.c
parent4d7895b3fe2123cd634a3add8489cf4e2579f5ac (diff)
Diffstat (limited to 'test/Sema/generic-selection.c')
-rw-r--r--test/Sema/generic-selection.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Sema/generic-selection.c b/test/Sema/generic-selection.c
index 0563ec0f4fc00..5c02005d0fa80 100644
--- a/test/Sema/generic-selection.c
+++ b/test/Sema/generic-selection.c
@@ -31,4 +31,8 @@ void foo(int n) {
const int i = 12;
int a9[_Generic(i, int: 1, default: 2) == 1 ? 1 : -1];
+
+ // This is expected to not trigger any diagnostics because the controlling
+ // expression is not evaluated.
+ (void)_Generic(*(int *)0, int: 1);
}