blob: 4c16e6c72ad6ba2ced0658d591b0d11f9f447842 [file] [log] [blame]
// RUN: clspv -w -constant-args-ubo -verify -inline-entry-points %s
struct inner {
int x;
};
struct outer {
int x;
struct inner y; //expected-note{{here}}
} __attribute((aligned(32)));
__kernel void foo(__constant struct outer* c) { } //expected-error{{in an UBO, structs must be aligned to their largest element alignment, rounded up to a multiple of 16 bytes}}