Skip to content

Commit 0d73348

Browse files
committed
Fix unused variable warning
1 parent a5db327 commit 0d73348

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libcudacxx/test/libcudacxx/std/containers/sequences/inplace_vector/constructor.pass.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ __host__ __device__ constexpr void test_init_list()
218218
using inplace_vector = cuda::std::inplace_vector<T, 42>;
219219
{ // inplace_vector<T, N> can be constructed from an empty initializer_list
220220
cuda::std::initializer_list<T> input{};
221-
inplace_vector vec{};
221+
inplace_vector vec(input);
222222
assert(vec.empty());
223223
}
224224

0 commit comments

Comments
 (0)