1*67e74705SXin Li // RUN: %clang_cc1 %s -verify -fsyntax-only -pedantic 2*67e74705SXin Li // expected-no-diagnostics 3*67e74705SXin Li 4*67e74705SXin Li // This file tests the clang extension which allows initializing the components 5*67e74705SXin Li // of a complex number individually using an initialization list. Basically, 6*67e74705SXin Li // if you have an explicit init list for a complex number that contains two 7*67e74705SXin Li // initializers, this extension kicks in to turn it into component-wise 8*67e74705SXin Li // initialization. 9*67e74705SXin Li // 10*67e74705SXin Li // See also the testcase for the C version of this extension in 11*67e74705SXin Li // test/Sema/complex-init-list.c. 12*67e74705SXin Li 13*67e74705SXin Li // Basic testcase 14*67e74705SXin Li // (No pedantic warning is necessary because _Complex is not part of C++.) 15*67e74705SXin Li _Complex float valid1 = { 1.0f, 2.0f }; 16