aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/init.c
diff options
context:
space:
mode:
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;