Skip to content

Commit f90cb8d

Browse files
committed
[SYCL] Add test for unused argument warning
1 parent eb27453 commit f90cb8d

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// REQUIRES: clang-driver
2+
3+
// RUN: %clang -### -fsycl \
4+
// RUN: -fsycl-fp32-prec-sqrt %s 2>&1 | FileCheck %s
5+
6+
// RUN: %clang -### -fsycl -fsycl-targets=spir64_gen \
7+
// RUN: -fsycl-fp32-prec-sqrt %s 2>&1 | FileCheck %s
8+
//
9+
// RUN: %clang -### -fsycl -fsycl-targets=spir64_x86_64 \
10+
// RUN: -fsycl-fp32-prec-sqrt %s 2>&1 | FileCheck %s
11+
//
12+
// RUN: %clang -### -fsycl -fsycl-targets=spir64_fpga \
13+
// RUN: -fsycl-fp32-prec-sqrt %s 2>&1 | FileCheck %s
14+
15+
// CHECK: warning: argument unused during compilation: '-fsycl-fp32-prec-sqrt'
16+
17+
void func(){};

0 commit comments

Comments
 (0)