File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -27,9 +27,9 @@ template <typename T = void>
2727struct logical_and
2828#ifdef __INTEL_PREVIEW_BREAKING_CHANGES
2929 : std::logical_and<T>
30- #endif
3130{
32- #ifndef __INTEL_PREVIEW_BREAKING_CHANGES
31+ #else
32+ {
3333 T operator ()(const T &lhs, const T &rhs) const { return lhs && rhs; }
3434#endif
3535}; // namespace _V1
@@ -42,9 +42,9 @@ template <typename T = void>
4242struct logical_or
4343#ifdef __INTEL_PREVIEW_BREAKING_CHANGES
4444 : std::logical_or<T>
45- #endif
4645{
47- #ifndef __INTEL_PREVIEW_BREAKING_CHANGES
46+ #else
47+ {
4848 T operator ()(const T &lhs, const T &rhs) const { return lhs || rhs; }
4949#endif
5050}; // namespace sycl
Original file line number Diff line number Diff line change 11// RUN: %clang -fpreview-breaking-changes -fsycl -o - %s
22// RUN: not %clang -fpreview-breaking-changes -fsycl -DTEST_VOID_TYPES -o - %s
33// RUN: %clang -fsycl -o - %s
4- // RUN: not %clang -fsycl -DTEST_VOID_TYPES -o - %s
4+ // RUN: not %clang -fsycl -fsyntax-only - DTEST_VOID_TYPES -o - %s
55
66#include < cassert>
77#include < sycl/functional.hpp>
You can’t perform that action at this time.
0 commit comments