diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2011-09-19 23:17:44 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2011-09-19 23:17:44 +0000 |
commit | 6b9c41ea68f8ab98d012b3fb6384ded1022c71ea (patch) | |
tree | 761bcb81e11e8e9e56f99f75ed8edef411396dae /clang/test/Sema/array-init.c | |
parent | 1ab5e56324b6b65ee0095ec3400a9aa0836ae7d8 (diff) | |
download | bcm5719-llvm-6b9c41ea68f8ab98d012b3fb6384ded1022c71ea.tar.gz bcm5719-llvm-6b9c41ea68f8ab98d012b3fb6384ded1022c71ea.zip |
Add list initialization for complex numbers in C. Essentially, this allows "_Complex float x = {1.0f, 2.0f};". See changes to docs/LanguageExtensions.html for a longer description.
<rdar://problem/9397672>.
llvm-svn: 140090
Diffstat (limited to 'clang/test/Sema/array-init.c')
-rw-r--r-- | clang/test/Sema/array-init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Sema/array-init.c b/clang/test/Sema/array-init.c index 345ab6981b1..bc958c3eea6 100644 --- a/clang/test/Sema/array-init.c +++ b/clang/test/Sema/array-init.c @@ -53,7 +53,7 @@ void func() { void test() { int y1[3] = { - { 1, 2, 3 } // expected-warning{{braces around scalar initializer}} expected-warning{{excess elements in scalar initializer}} + { 1, 2, 3 } // expected-warning{{excess elements in scalar initializer}} }; int y3[4][3] = { { 1, 3, 5 }, |