summaryrefslogtreecommitdiff
path: root/test/SemaCXX/complex-init-list.cpp
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2019-08-27 19:15:24 +0000
committerAaron Ballman <aaron@aaronballman.com>2019-08-27 19:15:24 +0000
commit5f0d7648a30ecf9d250486ba0ea07d02f1accef3 (patch)
tree5ad3787dcc4c348c063630cc8a260e8fbaaafad1 /test/SemaCXX/complex-init-list.cpp
parentfff88111a219083406a561e1ff22f0280f021d6b (diff)
downloadclang-5f0d7648a30ecf9d250486ba0ea07d02f1accef3.tar.gz
Diagnose both _Complex and _Imaginary as C99 extensions.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@370100 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/complex-init-list.cpp')
-rw-r--r--test/SemaCXX/complex-init-list.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/SemaCXX/complex-init-list.cpp b/test/SemaCXX/complex-init-list.cpp
index f70f9df6c7..ea7b688ab2 100644
--- a/test/SemaCXX/complex-init-list.cpp
+++ b/test/SemaCXX/complex-init-list.cpp
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 %s -verify -fsyntax-only -pedantic
-// expected-no-diagnostics
// This file tests the clang extension which allows initializing the components
// of a complex number individually using an initialization list. Basically,
@@ -11,5 +10,4 @@
// test/Sema/complex-init-list.c.
// Basic testcase
-// (No pedantic warning is necessary because _Complex is not part of C++.)
-_Complex float valid1 = { 1.0f, 2.0f };
+_Complex float valid1 = { 1.0f, 2.0f }; // expected-warning {{'_Complex' is a C99 extension}}