diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-01-23 16:54:12 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-01-23 16:54:12 +0000 |
commit | f6c717c3dca839dcd189b4a6fa46c8fe7a8bec1d (patch) | |
tree | aeb6edc1c39a83482a90dc0e6553be7b24dfef65 /test/Sema/init.c | |
parent | be109b3e768b70f9efb106d25d6b5a2c72c5a9b8 (diff) |
Properly manage the bit-widths of APInts/APSInts in array initialization.
Fixes PR clang/3377
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62851 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/init.c')
-rw-r--r-- | test/Sema/init.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/Sema/init.c b/test/Sema/init.c index abfab37b43..edaaf64b8b 100644 --- a/test/Sema/init.c +++ b/test/Sema/init.c @@ -2,7 +2,9 @@ typedef void (* fp)(void); void foo(void); -fp a[1] = { foo }; + +// PR clang/3377 +fp a[(short int)1] = { foo }; int myArray[5] = {1, 2, 3, 4, 5}; int *myPointer2 = myArray; |