commit | cc4855e70948f7d4d0f0fd29a6127cff1dbd980c | [log] [tgz] |
---|---|---|
author | Anders Carlsson <andersca@mac.com> | Tue Jan 29 01:33:32 2008 +0000 |
committer | Anders Carlsson <andersca@mac.com> | Tue Jan 29 01:33:32 2008 +0000 |
tree | 9b7a7a19506a3d6fde0cae3217f93af96adf8d73 | |
parent | 544cbe5e4fddf8ca66816aa7751cee09a737b3fe [diff] [blame] |
Handle binary or in constant expressions. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46482 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CodeGen/globalinit.c b/test/CodeGen/globalinit.c index f868feb..e880b9a 100644 --- a/test/CodeGen/globalinit.c +++ b/test/CodeGen/globalinit.c
@@ -36,8 +36,12 @@ static int a = { 1 }; static int b = { 1, 2 }; +// References to enums. enum { EnumA, EnumB }; int c[] = { EnumA, EnumB }; + +// Binary operators +int d[] = { EnumA | EnumB };