diff options
author | Christopher Lamb <christopher.lamb@gmail.com> | 2007-12-02 08:49:54 +0000 |
---|---|---|
committer | Christopher Lamb <christopher.lamb@gmail.com> | 2007-12-02 08:49:54 +0000 |
commit | 0cbd8723f36f9e191cd7dac0daadb7c051abf97b (patch) | |
tree | 67400584e27331b17927b732c9851643a240e204 /clang/test/CodeGen/trunc-array-initializer.c | |
parent | f45a1d623cce45fb716555214a92ef3a759c9592 (diff) | |
download | bcm5719-llvm-0cbd8723f36f9e191cd7dac0daadb7c051abf97b.tar.gz bcm5719-llvm-0cbd8723f36f9e191cd7dac0daadb7c051abf97b.zip |
Treat discarding array initializer elements as an extwarn (so -pedantic-errors flags it). Allow CodeGen to truncate the initializer if needed.
llvm-svn: 44518
Diffstat (limited to 'clang/test/CodeGen/trunc-array-initializer.c')
-rw-r--r-- | clang/test/CodeGen/trunc-array-initializer.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/test/CodeGen/trunc-array-initializer.c b/clang/test/CodeGen/trunc-array-initializer.c new file mode 100644 index 00000000000..6f4caf45881 --- /dev/null +++ b/clang/test/CodeGen/trunc-array-initializer.c @@ -0,0 +1,3 @@ +// RUN: clang -emit-llvm %s + +int ary[2] = { 1, 2, 3 }; |