[cfe-commits] r92858 - /cfe/trunk/test/SemaCXX/aggregate-initialization.cpp

Douglas Gregor dgregor at apple.com
Wed Jan 6 14:06:14 PST 2010


Author: dgregor
Date: Wed Jan  6 16:06:13 2010
New Revision: 92858

URL: http://llvm.org/viewvc/llvm-project?rev=92858&view=rev
Log:
Add testcase for PR5817, although the bug was already fixed

Modified:
    cfe/trunk/test/SemaCXX/aggregate-initialization.cpp

Modified: cfe/trunk/test/SemaCXX/aggregate-initialization.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/aggregate-initialization.cpp?rev=92858&r1=92857&r2=92858&view=diff

==============================================================================
--- cfe/trunk/test/SemaCXX/aggregate-initialization.cpp (original)
+++ cfe/trunk/test/SemaCXX/aggregate-initialization.cpp Wed Jan  6 16:06:13 2010
@@ -26,3 +26,7 @@
 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};





More information about the cfe-commits mailing list