diff options
Diffstat (limited to 'test/SemaCXX/flexible-array-test.cpp')
-rw-r--r-- | test/SemaCXX/flexible-array-test.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/SemaCXX/flexible-array-test.cpp b/test/SemaCXX/flexible-array-test.cpp index e58f19a..2d74fa5 100644 --- a/test/SemaCXX/flexible-array-test.cpp +++ b/test/SemaCXX/flexible-array-test.cpp @@ -14,6 +14,12 @@ void QMap<Key, T>::insert(const Key &, const T &avalue) v = avalue; } +struct Rec { + union { // expected-warning-re {{variable sized type '{{.*}}' not at the end of a struct or class is a GNU extension}} + int u0[]; + }; + int x; +} rec; struct inotify_event { |