From e9899f5cde323ac6dfadccb7181b24bdd55e136a Mon Sep 17 00:00:00 2001 From: "Romanov, Vlad" Date: Thu, 13 Oct 2022 09:41:27 -0700 Subject: [PATCH] [SYCL] Return back c++17 option to the test It seems that without -fsycl the default version of c++ is less than c++17 which is required for SYCL headers. --- sycl/test/basic_tests/accessor/host_acc_opt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sycl/test/basic_tests/accessor/host_acc_opt.cpp b/sycl/test/basic_tests/accessor/host_acc_opt.cpp index dc232e7871a10..fbc38ef9265aa 100644 --- a/sycl/test/basic_tests/accessor/host_acc_opt.cpp +++ b/sycl/test/basic_tests/accessor/host_acc_opt.cpp @@ -1,4 +1,4 @@ -// RUN: %clangxx -O2 -isystem %sycl_include/sycl -isystem %sycl_include -S -emit-llvm %s -o - | FileCheck %s +// RUN: %clangxx -std=c++17 -O2 -isystem %sycl_include/sycl -isystem %sycl_include -S -emit-llvm %s -o - | FileCheck %s // The test verifies that the accessor::operator[] implementation is // good enough for compiler to optimize away calls to getOffset and