summaryrefslogtreecommitdiff
path: root/test/Sema/short-enums.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Sema/short-enums.c')
-rw-r--r--test/Sema/short-enums.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/Sema/short-enums.c b/test/Sema/short-enums.c
index 6605c4e8fc..9bf0064646 100644
--- a/test/Sema/short-enums.c
+++ b/test/Sema/short-enums.c
@@ -1,5 +1,6 @@
// RUN: not %clang_cc1 -fsyntax-only %s -verify
// RUN: %clang_cc1 -fshort-enums -fsyntax-only %s -verify
+// expected-no-diagnostics
enum x { A };
int t0[sizeof(enum x) == 1 ? 1 : -1];