bolt/deps/llvm-18.1.8/clang/test/SemaOpenCL/sizeof.cl
2025-02-14 19:21:04 +01:00

5 lines
177 B
Common Lisp

// RUN: %clang_cc1 %s -verify -fsyntax-only
kernel void test(global int* buf) {
buf[0] = sizeof(void); // expected-error {{invalid application of 'sizeof' to a void type}}
}