]> granicus.if.org Git - clang/commitdiff
Add testcase for PR5817, although the bug was already fixed
authorDouglas Gregor <dgregor@apple.com>
Wed, 6 Jan 2010 22:06:13 +0000 (22:06 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 6 Jan 2010 22:06:13 +0000 (22:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@92858 91177308-0d34-0410-b5e6-96231b3b80d8

test/SemaCXX/aggregate-initialization.cpp

index 255b3529823ee2c381720a9ca49a99c60850840a..ac482151fac1acdf8355e100c3d88ba917449fb6 100644 (file)
@@ -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};