diff options
author | Sebastian Redl <sebastian.redl@getdesigned.at> | 2008-11-06 15:59:35 +0000 |
---|---|---|
committer | Sebastian Redl <sebastian.redl@getdesigned.at> | 2008-11-06 15:59:35 +0000 |
commit | d93f0ddba0965ded252e228134b30ce30e863fb0 (patch) | |
tree | 94241b20ebda32370cae324a5fdb17a2cb34a584 /test/SemaCXX/aggregate-initialization.cpp | |
parent | 85bb3dad385e9c2a57cf5aa2d2116d8381953a5a (diff) |
Sema-check virtual declarations. Complete dynamic_cast checking.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@58804 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/aggregate-initialization.cpp')
-rw-r--r-- | test/SemaCXX/aggregate-initialization.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/SemaCXX/aggregate-initialization.cpp b/test/SemaCXX/aggregate-initialization.cpp index 855bc27616..75b872feb0 100644 --- a/test/SemaCXX/aggregate-initialization.cpp +++ b/test/SemaCXX/aggregate-initialization.cpp @@ -17,10 +17,12 @@ class NonAggr3 { int m; }; -// FIXME: virtual functions struct NonAggr4 { + int m; + virtual void f(); }; NonAggr1 na1 = { 17 }; // expected-error{{initialization of non-aggregate type 'struct NonAggr1' with an initializer list}} NonAggr2 na2 = { 17 }; // expected-error{{initialization of non-aggregate type 'struct NonAggr2' with an initializer list}} NonAggr3 na3 = { 17 }; // expected-error{{initialization of non-aggregate type 'class NonAggr3' with an initializer list}} +NonAggr4 na4 = { 17 }; // expected-error{{initialization of non-aggregate type 'struct NonAggr4' with an initializer list}} |