commit | 9a2b9d794bdf349b517ff799170f4409f45d147c | [log] [tgz] |
---|---|---|
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | Fri Oct 08 00:25:19 2010 +0000 |
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | Fri Oct 08 00:25:19 2010 +0000 |
tree | 53c1d045b2f2bed194ed6d02deb38c810752f24d | |
parent | 3951e7106c849db72301a1ef05f99511e4818ef0 [diff] [blame] |
Implement -fshort-enums (rdar://8490496). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116020 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/Sema/short-enums.c b/test/Sema/short-enums.c new file mode 100644 index 0000000..6605c4e --- /dev/null +++ b/test/Sema/short-enums.c
@@ -0,0 +1,5 @@ +// RUN: not %clang_cc1 -fsyntax-only %s -verify +// RUN: %clang_cc1 -fshort-enums -fsyntax-only %s -verify + +enum x { A }; +int t0[sizeof(enum x) == 1 ? 1 : -1];