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