[mlir][LLVM][NFC] Fix description of `LLVMFixedVectorType` (#126031)
[llvm-project.git] / libcxx / test / std / utilities / smartptr / unique.ptr / unique.ptr.dltr / unique.ptr.dltr.dflt / void.compile.fail.cpp
blob3bffeb5769497cfb1ddf5cc46c0f1f1d6adb0df8
1 //===----------------------------------------------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
9 // <memory>
11 // default_delete
13 // Test that default_delete's operator() requires a complete type
15 #include <memory>
16 #include <cassert>
18 int main(int, char**)
20 std::default_delete<const void> d;
21 const void* p = 0;
22 d(p);
24 return 0;