|
| 1 | +// RUN: %clang_cc1 %s -fcuda-is-device -std=c++17 -triple spirv32 -verify |
| 2 | +// RUN: %clang_cc1 %s -fcuda-is-device -std=c++17 -triple spirv64 -verify |
| 3 | +// RUN: %clang_cc1 %s -fcuda-is-device -std=c++17 -triple spirv64-amd-amdhsa -verify |
| 4 | +// RUN: %clang_cc1 %s -fcuda-is-device -std=c++17 -triple spirv32 -aux-triple x86_64-unknown-linux-gnu -verify |
| 5 | +// RUN: %clang_cc1 %s -fcuda-is-device -std=c++17 -triple spirv64 -aux-triple x86_64-unknown-linux-gnu -verify |
| 6 | +// RUN: %clang_cc1 %s -fcuda-is-device -std=c++17 -triple spirv64-amd-amdhsa -aux-triple x86_64-unknown-linux-gnu -verify |
| 7 | +// RUN: %clang_cc1 %s -fcuda-is-device -std=c++17 -triple spirv32 -aux-triple x86_64-pc-windows-msvc -verify |
| 8 | +// RUN: %clang_cc1 %s -fcuda-is-device -std=c++17 -triple spirv64 -aux-triple x86_64-pc-windows-msvc -verify |
| 9 | +// RUN: %clang_cc1 %s -fcuda-is-device -std=c++17 -triple spirv64-amd-amdhsa -aux-triple x86_64-pc-windows-msvc -verify |
| 10 | + |
| 11 | +// expected-no-diagnostics |
| 12 | + |
| 13 | +namespace std |
| 14 | +{ |
| 15 | + enum class align_val_t : __SIZE_TYPE__ {}; |
| 16 | + struct nothrow_t { explicit nothrow_t() = default; }; |
| 17 | + extern nothrow_t const nothrow; |
| 18 | +} |
| 19 | + |
| 20 | +void* __attribute__((cdecl)) operator new(__SIZE_TYPE__); |
| 21 | +void* __attribute__((cdecl)) operator new[](__SIZE_TYPE__); |
| 22 | +void* __attribute__((cdecl)) operator new(__SIZE_TYPE__, ::std::align_val_t); |
| 23 | +void* __attribute__((cdecl)) operator new[](__SIZE_TYPE__, ::std::align_val_t); |
| 24 | + |
| 25 | +void __attribute__((cdecl)) operator delete(void*) noexcept; |
| 26 | +void __attribute__((cdecl)) operator delete[](void*) noexcept; |
| 27 | +void __attribute__((cdecl)) operator delete(void*, __SIZE_TYPE__) noexcept; |
| 28 | +void __attribute__((cdecl)) operator delete[](void*, __SIZE_TYPE__) noexcept; |
| 29 | +void __attribute__((cdecl)) operator delete(void*, ::std::align_val_t) noexcept; |
| 30 | +void __attribute__((cdecl)) operator delete[](void*, ::std::align_val_t) noexcept; |
| 31 | +void __attribute__((cdecl)) operator delete(void*, __SIZE_TYPE__, ::std::align_val_t) noexcept; |
| 32 | +void __attribute__((cdecl)) operator delete[](void*, __SIZE_TYPE__, ::std::align_val_t) noexcept; |
0 commit comments