Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / SemaCXX / complex-init-list.cpp
blobea7b688ab2fb3a0444ae0e762aba68e37810adb9
1 // RUN: %clang_cc1 %s -verify -fsyntax-only -pedantic
3 // This file tests the clang extension which allows initializing the components
4 // of a complex number individually using an initialization list. Basically,
5 // if you have an explicit init list for a complex number that contains two
6 // initializers, this extension kicks in to turn it into component-wise
7 // initialization.
8 //
9 // See also the testcase for the C version of this extension in
10 // test/Sema/complex-init-list.c.
12 // Basic testcase
13 _Complex float valid1 = { 1.0f, 2.0f }; // expected-warning {{'_Complex' is a C99 extension}}