diff options
| author | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-01-11 00:53:35 +0000 |
|---|---|---|
| committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-01-11 00:53:35 +0000 |
| commit | 6fa28ffd5a60ca9d3461eb8827d32e968f6f88fc (patch) | |
| tree | f872c0eebdd85dc7e6b3f9f78f1df0e298122296 /clang/test/ARCMT/cxx-checking.mm | |
| parent | c26e63e9868cb66339f244f199328ae2848803ef (diff) | |
| download | bcm5719-llvm-6fa28ffd5a60ca9d3461eb8827d32e968f6f88fc.tar.gz bcm5719-llvm-6fa28ffd5a60ca9d3461eb8827d32e968f6f88fc.zip | |
Fix "regression" caused by updating our notion of POD to better match the C++11
rules: instead of requiring flexible array members to be POD, require them to
be trivially-destructible. This seems to be the only constraint that actually
matters here (and even then, it's questionable whether this matters).
llvm-svn: 198983
Diffstat (limited to 'clang/test/ARCMT/cxx-checking.mm')
| -rw-r--r-- | clang/test/ARCMT/cxx-checking.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/ARCMT/cxx-checking.mm b/clang/test/ARCMT/cxx-checking.mm index 35bc71d992e..aa3bc466f67 100644 --- a/clang/test/ARCMT/cxx-checking.mm +++ b/clang/test/ARCMT/cxx-checking.mm @@ -80,7 +80,7 @@ int check_non_pod_block1[__is_pod(int (^ __unsafe_unretained)(int))? 1 : -1]; struct FlexibleArrayMember0 { int length; - id array[]; // expected-error{{flexible array member 'array' of non-POD element type 'id __strong[]'}} + id array[]; // expected-error{{flexible array member 'array' of type 'id __strong[]' with non-trivial destruction}} }; struct FlexibleArrayMember1 { |

