1 // RUN: %clang --target=x86_64-pc-linux -S -fno-discard-value-names -emit-llvm -o - %s | FileCheck %s
2 // RUN: %clang_cc1 %s -fsyntax-only -verify
5 using size_t = decltype(sizeof(int));
7 void* operator new[](std::size_t, void*) noexcept
;
9 // CHECK: call void @llvm.memset.p0.i64(ptr align 1 %x, i8 0, i64 8, i1 false)
10 // CHECK: call void @llvm.memset.p0.i64(ptr align 16 %x, i8 0, i64 32, i1 false)
11 template <typename TYPE
>
14 typedef TYPE TArray
[8];
22 int (*x
)[1] = new int[1][1];
24 template void f1
<char>();
26 int (*x
)[1] = new int[1][1];
35 // expected-no-diagnostics
36 template <typename T
> struct unique_ptr
{unique_ptr(T
* p
){}};
39 unique_ptr
<T
> make_unique(unsigned long long n
) {
40 return unique_ptr
<T
>(new T
[n
]());
44 typedef double HistoryBuffer
[4];
45 return make_unique
<HistoryBuffer
>(n
);