16 lines
363 B
Plaintext
16 lines
363 B
Plaintext
// RUN: %{ispc} --target=host --nostdlib --nowrap -h %t.h %s 2>&1
|
|
// RUN: FileCheck %s --input-file=%t.h
|
|
// RUN: %{cc} -c -x c %t.h
|
|
// RUN: %{cc} -c -x c++ %t.h
|
|
|
|
// CHECK: uint32_t &my_data;
|
|
// CHECK: uint32_t *my_data;
|
|
// CHECK: use(struct Test &test);
|
|
// CHECK: use(struct Test *test);
|
|
|
|
struct Test {
|
|
uint &my_data;
|
|
};
|
|
|
|
export void use(uniform Test &test) {}
|