From: Douglas Gregor Date: Wed, 6 Jan 2010 22:06:13 +0000 (+0000) Subject: Add testcase for PR5817, although the bug was already fixed X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bab497b9f94cd1538c6b3348c2331daf27dd092e;p=clang Add testcase for PR5817, although the bug was already fixed git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@92858 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/SemaCXX/aggregate-initialization.cpp b/test/SemaCXX/aggregate-initialization.cpp index 255b352982..ac482151fa 100644 --- a/test/SemaCXX/aggregate-initialization.cpp +++ b/test/SemaCXX/aggregate-initialization.cpp @@ -26,3 +26,7 @@ NonAggr1 na1 = { 17 }; // expected-error{{non-aggregate type 'struct NonAggr1' c NonAggr2 na2 = { 17 }; // expected-error{{non-aggregate type 'struct NonAggr2' cannot be initialized with an initializer list}} NonAggr3 na3 = { 17 }; // expected-error{{non-aggregate type 'class NonAggr3' cannot be initialized with an initializer list}} NonAggr4 na4 = { 17 }; // expected-error{{non-aggregate type 'struct NonAggr4' cannot be initialized with an initializer list}} + +// PR5817 +typedef int type[][2]; +const type foo = {0};