| 1 |
// RUN: not %occ-cli %s --cl-options="-Werror -Wuninitialized" |
| 2 |
// --cl-device=%cl_device %cfg_path --output=%t.bc 2>&1 | FileCheck %s |
| 3 |
|
| 4 |
__kernel void k() { |
| 5 |
// CHECK: error: variable 'p' is uninitialized when used here |
| 6 |
int *p; |
| 7 |
printf("%d\n", *p); |
| 8 |
} |