From 6b9c41ea68f8ab98d012b3fb6384ded1022c71ea Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Mon, 19 Sep 2011 23:17:44 +0000 Subject: 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. . llvm-svn: 140090 --- clang/test/Sema/array-init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/test/Sema/array-init.c') 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 }, -- cgit v1.2.3