]> granicus.if.org Git - clang/commitdiff
Add test case for r193923
authorDavid Majnemer <david.majnemer@gmail.com>
Sat, 2 Nov 2013 12:11:58 +0000 (12:11 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Sat, 2 Nov 2013 12:11:58 +0000 (12:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@193924 91177308-0d34-0410-b5e6-96231b3b80d8

test/SemaCXX/inherit.cpp

index a926c812514c598805177347480775ee7c1b50fa..abeed9ab4755dbcb89af00bdd9b470d0405c85b1 100644 (file)
@@ -30,3 +30,6 @@ typedef G_copy G_copy_3;
 
 class H : G_copy, A, G_copy_2, // expected-error{{base class 'G_copy' (aka 'G') specified more than once as a direct base class}}
           public G_copy_3 { }; // expected-error{{base class 'G_copy' (aka 'G') specified more than once as a direct base class}}
+
+struct J { char c; int i[]; };
+struct K : J { }; // expected-error{{base class 'J' has a flexible array member}}