|
1 |
| -// REQUIRES: accelerator |
2 |
| -// |
3 | 1 | // RUN: %{build} -o %t.out
|
4 | 2 | // RUN: %{run} %t.out
|
5 | 3 | //
|
6 |
| -// https://github.com/intel/llvm/issues/11224 |
7 |
| -// UNSUPPORTED: windows |
8 | 4 |
|
9 | 5 | #include "common.hpp"
|
10 | 6 |
|
@@ -100,29 +96,27 @@ int main() {
|
100 | 96 | d_ptr[i] = i;
|
101 | 97 |
|
102 | 98 | // testing arithmetic overloaded operators
|
103 |
| - annotated_arg<MyStruct<int>, decltype(properties{conduit})> e = MyStruct(5); |
104 |
| - annotated_arg<MyStruct<int>, decltype(properties{conduit})> f = MyStruct(6); |
105 |
| - annotated_arg<MyStruct<int>, decltype(properties{conduit})> g = MyStruct(3); |
106 |
| - annotated_arg<MyStruct<int>, decltype(properties{conduit})> h = MyStruct(2); |
| 99 | + annotated_arg<MyStruct<int>> e = MyStruct(5); |
| 100 | + annotated_arg<MyStruct<int>> f = MyStruct(6); |
| 101 | + annotated_arg<MyStruct<int>> g = MyStruct(3); |
| 102 | + annotated_arg<MyStruct<int>> h = MyStruct(2); |
107 | 103 |
|
108 | 104 | auto *r1 = malloc_shared<MyStruct<int>>(5, Q);
|
109 | 105 | auto *r2 = malloc_shared<MyStruct<int>>(5, Q);
|
110 | 106 | auto *r3 = malloc_shared<MyStruct<int>>(5, Q);
|
111 | 107 |
|
112 | 108 | // testing logical overloaded operators
|
113 |
| - annotated_arg<MyStruct<bool>, decltype(properties{conduit})> m = |
114 |
| - MyStruct(true); |
115 |
| - annotated_arg<MyStruct<bool>, decltype(properties{conduit})> n = |
116 |
| - MyStruct(false); |
| 109 | + annotated_arg<MyStruct<bool>> m = MyStruct(true); |
| 110 | + annotated_arg<MyStruct<bool>> n = MyStruct(false); |
117 | 111 |
|
118 | 112 | auto *r4 = malloc_shared<MyStruct<bool>>(3, Q);
|
119 | 113 | auto *r5 = malloc_shared<MyStruct<bool>>(3, Q);
|
120 | 114 | auto *r6 = malloc_shared<MyStruct<bool>>(3, Q);
|
121 | 115 |
|
122 | 116 | // testing bit shift overloaded operators
|
123 |
| - annotated_arg<MyStruct<int>, decltype(properties{conduit})> x = MyStruct(1); |
124 |
| - annotated_arg<MyStruct<int>, decltype(properties{conduit})> y = MyStruct(2); |
125 |
| - annotated_arg<MyStruct<int>, decltype(properties{conduit})> z = MyStruct(4); |
| 117 | + annotated_arg<MyStruct<int>> x = MyStruct(1); |
| 118 | + annotated_arg<MyStruct<int>> y = MyStruct(2); |
| 119 | + annotated_arg<MyStruct<int>> z = MyStruct(4); |
126 | 120 |
|
127 | 121 | auto *r7 = malloc_shared<MyStruct<int>>(2, Q);
|
128 | 122 | auto *r8 = malloc_shared<MyStruct<int>>(2, Q);
|
@@ -262,7 +256,7 @@ int main() {
|
262 | 256 | assert(is_device_copyable<device_copyable_annotated_arg>::value &&
|
263 | 257 | "annotated_arg<device_copyable_class> is not device copyable.");
|
264 | 258 | using device_copyable_annotated_arg_with_properties =
|
265 |
| - annotated_arg<device_copyable_class, decltype(properties{conduit})>; |
| 259 | + annotated_arg<device_copyable_class>; |
266 | 260 | assert(is_device_copyable<
|
267 | 261 | device_copyable_annotated_arg_with_properties>::value &&
|
268 | 262 | "annotated_arg<device_copyable_class, properties> is not device "
|
|
0 commit comments