Skip to content

Commit

Permalink
add missing attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
davebayer committed Dec 2, 2024
1 parent 3f646ed commit 9d9113e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion libcudacxx/include/cuda/std/version
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
# include <ciso646> // otherwise go for the smallest possible header
#endif // !_CCCL_COMPILER(NVRTC)

#define __cccl_lib_to_underlying 202102L
#define __cccl_lib_is_scoped_enum 202011L
#define __cccl_lib_to_underlying 202102L
// #define __cpp_lib_tuple_like 202311L // P2819R2 is implemented, but P2165R4 is not yet

#if _CCCL_STD_VER >= 2014
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class Empty

class NotEmpty
{
virtual ~NotEmpty();
__host__ __device__ virtual ~NotEmpty();
};

union Union
Expand All @@ -66,7 +66,7 @@ struct bit_zero

class Abstract
{
virtual ~Abstract() = 0;
__host__ __device__ virtual ~Abstract() = 0;
};

enum Enum
Expand All @@ -88,11 +88,11 @@ using FunctionType = void();

struct TestMembers
{
static int static_method(int)
__host__ __device__ static int static_method(int)
{
return 0;
}
int method()
__host__ __device__ int method()
{
return 0;
}
Expand All @@ -105,8 +105,8 @@ struct TestMembers
enum class CE1;
};

void func1();
int func2(int);
__host__ __device__ void func1();
__host__ __device__ int func2(int);

int main(int, char**)
{
Expand Down

0 comments on commit 9d9113e

Please sign in to comment.