summaryrefslogtreecommitdiffstats
path: root/test/SemaCXX/inherit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaCXX/inherit.cpp')
-rw-r--r--test/SemaCXX/inherit.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/SemaCXX/inherit.cpp b/test/SemaCXX/inherit.cpp
index a926c81..abeed9a 100644
--- a/test/SemaCXX/inherit.cpp
+++ b/test/SemaCXX/inherit.cpp
@@ -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}}
OpenPOWER on IntegriCloud