brintos

brintos / llvm-project-archived public Read only

0
0
Text · 594 B · ea7b688 Raw
14 lines · cpp
1// RUN: %clang_cc1 %s -verify -fsyntax-only -pedantic2 3// This file tests the clang extension which allows initializing the components4// of a complex number individually using an initialization list. Basically,5// if you have an explicit init list for a complex number that contains two6// initializers, this extension kicks in to turn it into component-wise7// initialization.8// 9// See also the testcase for the C version of this extension in10// test/Sema/complex-init-list.c.11 12// Basic testcase13_Complex float valid1 = { 1.0f, 2.0f }; // expected-warning {{'_Complex' is a C99 extension}}14