diff options
| author | Richard Smith <richard-llvm@metafoo.co.uk> | 2018-09-13 22:47:33 +0000 |
|---|---|---|
| committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2018-09-13 22:47:33 +0000 |
| commit | 128719c4fe7c3bc1f4beccb82a8636c375033f5a (patch) | |
| tree | 96f1e1cb7261af36a66b840f613882def8912dfe /clang/test/SemaCXX/constant-expression-cxx11.cpp | |
| parent | 11ca38f4212646e0998ecc10db227df8ce1e6348 (diff) | |
| download | bcm5719-llvm-128719c4fe7c3bc1f4beccb82a8636c375033f5a.tar.gz bcm5719-llvm-128719c4fe7c3bc1f4beccb82a8636c375033f5a.zip | |
Fix crash on call to __builtin_memcpy with a null pointer to an
incomplete type.
Also improve the diagnostics for similar situations.
llvm-svn: 342192
Diffstat (limited to 'clang/test/SemaCXX/constant-expression-cxx11.cpp')
| -rw-r--r-- | clang/test/SemaCXX/constant-expression-cxx11.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/SemaCXX/constant-expression-cxx11.cpp b/clang/test/SemaCXX/constant-expression-cxx11.cpp index c9bfd846415..578a057104a 100644 --- a/clang/test/SemaCXX/constant-expression-cxx11.cpp +++ b/clang/test/SemaCXX/constant-expression-cxx11.cpp @@ -253,7 +253,7 @@ namespace FunctionPointers { static_assert(1 + Apply(Select(4), 5) + Apply(Select(3), 7) == 42, ""); - constexpr int Invalid = Apply(Select(0), 0); // expected-error {{must be initialized by a constant expression}} expected-note {{in call to 'Apply(0, 0)'}} + constexpr int Invalid = Apply(Select(0), 0); // expected-error {{must be initialized by a constant expression}} expected-note {{in call to 'Apply(nullptr, 0)'}} } |

