diff options
Diffstat (limited to 'test/Sema/enum.c')
-rw-r--r-- | test/Sema/enum.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/Sema/enum.c b/test/Sema/enum.c index a95efb035d..fc2b491f5c 100644 --- a/test/Sema/enum.c +++ b/test/Sema/enum.c @@ -117,3 +117,5 @@ void crash(enum E* e) // expected-warning {{declaration of 'enum E' will not be PR8694(e); // expected-warning {{incompatible pointer types passing 'enum E *' to parameter of type 'int *'}} } +typedef enum { NegativeShort = (short)-1 } NegativeShortEnum; +int NegativeShortTest[NegativeShort == -1 ? 1 : -1]; |