llvm-for-llvmta/tools/clang/test/SemaOpenCL/sizeof.cl
Nils Hölscher 7f403f4f1e added clang
2022-04-25 13:02:35 +02:00

6 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}}
}