diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-01-06 22:06:13 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-01-06 22:06:13 +0000 |
commit | bab497b9f94cd1538c6b3348c2331daf27dd092e (patch) | |
tree | d5b4eaaeef814142437623a98ca4511ab28d8058 /test/SemaCXX/aggregate-initialization.cpp | |
parent | dffb8010a130733f1b55acf0af01deb0a2e083d3 (diff) |
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
Diffstat (limited to 'test/SemaCXX/aggregate-initialization.cpp')
-rw-r--r-- | test/SemaCXX/aggregate-initialization.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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}; |