aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/init.c
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-01-23 16:54:12 +0000
committerDouglas Gregor <dgregor@apple.com>2009-01-23 16:54:12 +0000
commitf6c717c3dca839dcd189b4a6fa46c8fe7a8bec1d (patch)
treeaeb6edc1c39a83482a90dc0e6553be7b24dfef65 /test/Sema/init.c
parentbe109b3e768b70f9efb106d25d6b5a2c72c5a9b8 (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.c4
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;