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