aboutsummaryrefslogtreecommitdiffstats
path: root/test/Sema/generic-selection.c
diff options
context:
space:
mode:
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 0563ec0f4fc0..5c02005d0fa8 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);
}