33 lines · plain
1// RUN: %clang_cc1 %s -fcuda-is-device -std=c++17 -triple spirv32 -verify2// RUN: %clang_cc1 %s -fcuda-is-device -std=c++17 -triple spirv64 -verify3// RUN: %clang_cc1 %s -fcuda-is-device -std=c++17 -triple spirv64-amd-amdhsa -verify4// RUN: %clang_cc1 %s -fcuda-is-device -std=c++17 -triple spirv32 -aux-triple x86_64-unknown-linux-gnu -verify5// RUN: %clang_cc1 %s -fcuda-is-device -std=c++17 -triple spirv64 -aux-triple x86_64-unknown-linux-gnu -verify6// RUN: %clang_cc1 %s -fcuda-is-device -std=c++17 -triple spirv64-amd-amdhsa -aux-triple x86_64-unknown-linux-gnu -verify7// RUN: %clang_cc1 %s -fcuda-is-device -std=c++17 -triple spirv32 -aux-triple x86_64-pc-windows-msvc -verify8// RUN: %clang_cc1 %s -fcuda-is-device -std=c++17 -triple spirv64 -aux-triple x86_64-pc-windows-msvc -verify9// RUN: %clang_cc1 %s -fcuda-is-device -std=c++17 -triple spirv64-amd-amdhsa -aux-triple x86_64-pc-windows-msvc -verify10 11// expected-no-diagnostics12 13namespace std14{15 enum class align_val_t : __SIZE_TYPE__ {};16 struct nothrow_t { explicit nothrow_t() = default; };17 extern nothrow_t const nothrow;18}19 20void* __attribute__((cdecl)) operator new(__SIZE_TYPE__);21void* __attribute__((cdecl)) operator new[](__SIZE_TYPE__);22void* __attribute__((cdecl)) operator new(__SIZE_TYPE__, ::std::align_val_t);23void* __attribute__((cdecl)) operator new[](__SIZE_TYPE__, ::std::align_val_t);24 25void __attribute__((cdecl)) operator delete(void*) noexcept;26void __attribute__((cdecl)) operator delete[](void*) noexcept;27void __attribute__((cdecl)) operator delete(void*, __SIZE_TYPE__) noexcept;28void __attribute__((cdecl)) operator delete[](void*, __SIZE_TYPE__) noexcept;29void __attribute__((cdecl)) operator delete(void*, ::std::align_val_t) noexcept;30void __attribute__((cdecl)) operator delete[](void*, ::std::align_val_t) noexcept;31void __attribute__((cdecl)) operator delete(void*, __SIZE_TYPE__, ::std::align_val_t) noexcept;32void __attribute__((cdecl)) operator delete[](void*, __SIZE_TYPE__, ::std::align_val_t) noexcept;33