diff options
Diffstat (limited to 'clang/test/SemaCXX/flexible-array-test.cpp')
-rw-r--r-- | clang/test/SemaCXX/flexible-array-test.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/SemaCXX/flexible-array-test.cpp b/clang/test/SemaCXX/flexible-array-test.cpp index e6c3132801f..f287711eeb6 100644 --- a/clang/test/SemaCXX/flexible-array-test.cpp +++ b/clang/test/SemaCXX/flexible-array-test.cpp @@ -66,4 +66,8 @@ struct Storage : StorageBase { int data[]; }; +struct VirtStorage : virtual StorageBase { + int data[]; // expected-error {{flexible array member 'data' not allowed in struct which has a virtual base class}} +}; + } |